Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1170
ViewableRecords.Count is incorrect
posted

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.