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