int FindRow(string textBoxValue) { for (int i = 0; i < DataGridView1.Rows.Count; i++) { if (DataGridView1.Rows[i].Cells[x].Value.ToString() == textBoxValue) { return DataGridView1.Rows[i].Index; } } return 0;}
int FindRow(string textBoxValue)
{
for (int i = 0; i < DataGridView1.Rows.Count; i++) {
if (DataGridView1.Rows[i].Cells[x].Value.ToString() == textBoxValue) {
return DataGridView1.Rows[i].Index;
}
return 0;