There are several syntax errors with your posted code, which I attempted to correct based on assumptions. Also, as noted in the comments, a colon is normally this character: ':'.
One thing that's important to note is that when iterating over a collection, you'll get an exception if you change any members in the collection. Therefore, you'll want to use a for loop to iterate over the cells in the DataGridView if you want to edit the indivdual cells values.
See if the code below works for you.
private void button2_Click(object sender, EventArgs e)
{
char comma = ',';
char slash = '/';
char colon = '"';
string Blank = "";
try
{
for (int row = 0; row < dataGridView1.Rows.Count;row++ )
{
for (int column = 0; column < dataGridView1.Columns.Count; column++)
{
object value = dataGridView1[column, row].Value;
if (value != null && value.GetType() == typeof(string))
{
string newValue = (string)value;
newValue = newValue.Replace(comma,slash);
newValue = newValue.Replace(colon.ToString(),Blank);
dataGridView1[column, row].Value = newValue;
}
}
}
}
catch(System.Exception ex)
{
MessageBox.Show(ex.Message);
}
}