Hi Patrick:
The underlying DataSource has to support the ICollection interface in
order for the grid to perform automatic paging. ICollection requires a
class to implement a Count property. ArrayList and DataView both
support the interface, so you could use them as DataSources.
Other classes only support the IEnumerable interface. This allows them
to be used as a DataSource but not as a paged data source.
SqlDataReader would be an example of such a class.
Making sense?
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Wed, 3 Nov 2004 22:49:02 -0800, "Patrick.O.Ige"
<Pa*********@discussions.microsoft.com> wrote:
When i try to do paging in Datagrid why do i get the error:-
System.Web.HttpException: Cannot compute Count for a data source that does
not implement ICollection.?