Sorry for my brevity -- I didn't discuss my issue well enough.
Say you have a collection that spans 10 pages of 50 records each (500 total).
You filter it down, leaving you with 140 records (3 pages of 50). When you call grid.Items.Count.ToString()
it will only return the number 50 -- the maximum size of the page. However, that value is wrong as you have 150 filtered records in total. How can I get this value of 140?
At first I was thinking of just multiplying by the number of pages, but in the case above I could still get a wrong number.
Edit: I figured it out. The (seemingly, I didn't count by hand) correct call to get the count of rows after a filter is
Using Items.Count will only retrieve at maximum the page size number, which is incorrect.