Hello all i am using datagrid and it doesnot have auto numbering. so i used the following method to number in rowheader but the problem is the numbers are repeating and when they sort a column they are rearranging themselves..please suggest a way out for me
In XAML page i called the method in the following way
LoadingRow="dg_expSummary_LoadingRow"
In the backend the code is as follows
private void dg_expSummary_LoadingRow(object sender, DataGridRowEventArgs e)
{
e.Row.Header = e.Row.GetIndex() + 1;
}