Hi, to provide the proper rownumber in the view with the silverlight xamGrid, i do update the RowNumberingSeed in the eventHandler of the PageIndexChanged Event:
xamGrid.RowSelectorSettings.EnableRowNumbering=true
private void XamGrid_OnPageIndexChanged(object sender, PageChangedEventArgs e) { XamGrid grid = sender as XamGrid; if (grid == null) { return; } grid.RowSelectorSettings.RowNumberingSeed = ((grid.PagerSettings.CurrentPageIndex - 1) * grid.PagerSettings.PageSize) + 1; }
Gruß,stein
I have attached a sample that gets the row index independednt of the paging. The way I coded it works just for the first level of the grid data (Categories) and not the lowel level (Products). What I did was to get the index from the original items source object. Please see the RowSelectorClicked event handler for the logic.
Sincerely,FrancisDeveloper Support EngineerInfragisticswww.infragistics.com/support