WPF DataGrid current row index

Mar 11, 2010 at 9:14 PM

Hi,

Can anyone please help me in how to get WPF DataGrid current row index, I tried with DataGrid.SelectedIndex but it always returns -1.

Thanks,

Sandeep