get what dgv row is selected code example Example: get selected row datagridview c# yourDataGridView.CurrentCell.RowIndex