get selected row from datagrid c# code example Example: get selected row datagridview c# yourDataGridView.CurrentCell.RowIndex