I'm displaying a row count at the bottom of a XamDataGrid which displays filtered in row count / total row count. This is the code we use to retrieve those numbers, and it gets called every time a new record is appended to the grid or the filters are updated:
_totalRows = xamDataGrid.Records.Count;
_visibleRows = xamDataGrid.ViewableRecords.Count();
We recently started having a problem where the _visibleRows value is always being set to n+1, where n is the _totalRows number. It seems like a strange bug if the ViewableRecords collection has a greater number of items than the Records collection at any time. Any ideas how we can fix this? Thanks.
Actually, it's probably counting the FilterRecord, right?
Hello John,
After setting the filter row to collapsed, I can confirm that the ViewableRecords collection is counting the Filter Record. I know this because I tried setting the ViewableRecords[0] record to collapsed and it made the Filter Record invisible.
I don’t believe this is a Development Issue, being that the Filter Record is still a viewable record.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewDeveloper Support IInfragistics Inc.www.infragistics.com/support