int intcount = 0; foreach (DataGridViewRow Row in DataGridView1.Rows) { if (DataGridView1.Rows(intcount).Cells(0).Value == "StringSearch") { //Do Something intcount += 1; } }
int intcount = 0; foreach (DataGridViewRow Row in DataGridView1.Rows) { if (DataGridView1.Rows(intcount).Cells(0).Value == "StringSearch") { dataGridView1.Rows[intcount].Cells[0].Style.BackColor=Color.White; intcount += 1; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)