S
Stefan Broenner
Hi,
I want to implement custom paging in a GridView (ASP.NET 2.0, June 2006 CTP)
without using a SQL or Object DataSource (for a variety of reasons).
Our custom paging logic only retrieves a subset of the data from the
database (e.g. 10 out of 100000 records when the PageSize = 10).
Binding the data and working with the relevant events works fine.
However, my problem is that I would need to tell the GridView how many
records I actually have so that it could display the correct paging UI (right
now I see only one page instead of 1000).
Alternatively, I could also provide the number of pages. There is a property
called PageCount but unfortunately it is read-only.
Is there any way how I could do this or do I need to go back to the DataGrid
(which supports this scenario just fine).
Thanks in advance
Stefan
I want to implement custom paging in a GridView (ASP.NET 2.0, June 2006 CTP)
without using a SQL or Object DataSource (for a variety of reasons).
Our custom paging logic only retrieves a subset of the data from the
database (e.g. 10 out of 100000 records when the PageSize = 10).
Binding the data and working with the relevant events works fine.
However, my problem is that I would need to tell the GridView how many
records I actually have so that it could display the correct paging UI (right
now I see only one page instead of 1000).
Alternatively, I could also provide the number of pages. There is a property
called PageCount but unfortunately it is read-only.
Is there any way how I could do this or do I need to go back to the DataGrid
(which supports this scenario just fine).
Thanks in advance
Stefan