Home All Groups Group Topic Archive Search About

Gridview + Custom Paging WITHOUT ObjectDataSource

Author
10 Jul 2006 8:22 PM
Kovan A
In the old datagrid 1.1 we had a property called virtualcount for the
datagrid that allowed one to set the virtual count and based on that provide
page numbers, this property is not available in gridview and i need to be
able to do this.  when i say custom paging i mean i have a data access layer
that does take care of the paging architecture so that only few records  are
returned and total COUNT of the records is returned.

so in short i need to be able to do this without object datasource, (one of
the most useless controls in 2.0)

Author
11 Jul 2006 10:03 AM
Teemu Keiski
Basically the thing with DataGrid was implemented with PagedDataSource
wrapper class ((is also with gridView but VirtualCount is not exposed), you
should be able to use it to enable it yourself.
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.pageddatasource.aspx

Note that DataGrid works fine in ASP.NET 2.0 (and exists) so if you want it
fast, it works exactly as in v1.x

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke



Show quoteHide quote
"Kovan A" <Kovan A@discussions.microsoft.com> wrote in message
news:D7A48D75-A29A-4959-B7C6-774A6DDF6FE8@microsoft.com...
> In the old datagrid 1.1 we had a property called virtualcount for the
> datagrid that allowed one to set the virtual count and based on that
> provide
> page numbers, this property is not available in gridview and i need to be
> able to do this.  when i say custom paging i mean i have a data access
> layer
> that does take care of the paging architecture so that only few records
> are
> returned and total COUNT of the records is returned.
>
> so in short i need to be able to do this without object datasource, (one
> of
> the most useless controls in 2.0)
>
>