vb net how to get the selected row in datagridview code example Example: get selected row datagridview c# yourDataGridView.CurrentCell.RowIndex