how to change the data grid selected row C# code example Example: c# datagridview select row index programmatically dataGrid.Rows[index].Selected = true;