In my example i have got:
DataTable dt = SomeMethodThatFillsDataTable();
DataGridView dgv = new DataGridView;
dgv.DataSource = dt;
now I would like to "pick" some DataRows from DataTable and highlight it in DataGridView
DataRow[] foundRows = dt.Select("someColumn = someTerm");
foreach (DataRow row in foundRows)
{
DataGridViewRow dgvRow = // here i would like to get acces to DataGridViewRow "attached" to row
dgvRow.DefaultCellStyle.BackColor = Color.Red;
}
Any idee how to do this? Is it possible anyway?