Ahhh...found the problem: there aren't 8 items in the list. There are 16
(Items.Count is returning the count on the current page; VirtualItemCount
returns 0) + a SelectAll row, which is throwing off the count, so the 3rd
page is the overflow caused by the SelectAll rows on each page.
"Keith Patrick" <> wrote in message
news:...
> I have a datagrid control that is working fine as I update, with what I
> assume are correct page counts (pre-filtered, there are probably 100 pages
> of 8 items each), but on my last filtering action, I reduce the item count
> to 8 items. However, the PageCount is always 3. If I click the 3rd page,
> the list empties on postback. PageSize is 8, and Items.Count == 8, but
> PageCount is continually 3. Can someone point me in the right direction
as
> to what I may be doing wrong (I can't even describe this problem with the
> right keywords to get a decent Google search)?
>
>
|