It\'s that simple. How do I get the index of the currently selected Row of a DataGridView? I don\'t want the Row object, I want the in
Row
DataGridView
try this it will work...it will give you the index of selected row index...
int rowindex = dataGridView1.CurrentRow.Index; MessageBox.Show(rowindex.ToString());