highlight dgv row through code code example Example: c# datagridview select row index programmatically dataGrid.Rows[index].Selected = true;