Google Brother Up

2007/11/30

Paging does not occur (Why?)

Problem
AllowCustomPaging must be true and VirtualItemCount must be set for a DataGrid with ID 'dgdManageUsers' when AllowPaging is set to true and the selected data source does not implement ICollection.

Solution
1. Solving AllowCustomPaging must be true and VirtualItemCount must be set for a DataGrid
2. This error usually comes when you are binding a paging enabled grid using DataReader. DataReader is forward only. So paging can't work. To solve this bind the grid with Dataset.

This works :)

No comments:

Drop Down List

1. http://www.janetsystems.co.uk/Articles/NetArticles/tabid/74/itemid/161/modid/449/Default.aspx