Does this work?
maybe cell.Value is null and this throws your exception.
public void Button1_Click(object sender, EventArgs e)
{
try
{
for(int i= 0;i<DGV.Rows.Count;i++)
{
foreach(DataGridViewCell cell in DGV.Rows[i].Cells)
{
if(cell.Value == null)
continue;
cell.Value = cell.Value.ToString().Replace(comma.ToString(), slash.ToString());
cell.Value = cell.Value.ToString().Replace(colon.ToString(), Blank.ToString());
}
}
}
catch(System.Exception ex)
{
MessageBox.Show(ex.Message);
}
}