I am looking to get the row number of which the mouse cursor is on in a DataGrid (So basically on a MouseEnter event) so I can get the DataGridRow item of which the ItemSour
This worked for me.
private void Row_MouseEnter(object sender, MouseEventArgs e) { int index = dataGridView.ItemContainerGenerator.IndexFromContainer((DataGridRow)sender); }