Custom Paging Numbers wrong

A

Andrew

I'm attempting to use Custom Paging with my Datagrid and I'm running into a problem with the numeric page indicator.

When I load my page I set the VirtualItemCount value to the total number of records e.g. 50 and then go and get 5 records which is my page size.

The problem I'm finding is that the paging part of the control only ever displays the numeric 1 when I'm expecting it to display 1 2 3 4 5 6 7 8 9
etc.

Everything else on my page - sorting etc is working great and also I can get the PageIndexChanged event to fire.


Any thoughts

Thanks
Andrew
 
S

Saravana [MVP]

For enabling cutompaging, we need to following properties,

Allowpage, AllowCustomPaging, VirtualItemCount and Pagesize. Have you set
all these properties??

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com



Andrew said:
I'm attempting to use Custom Paging with my Datagrid and I'm running into
a problem with the numeric page indicator.
When I load my page I set the VirtualItemCount value to the total number
of records e.g. 50 and then go and get 5 records which is my page size.
The problem I'm finding is that the paging part of the control only ever
displays the numeric 1 when I'm expecting it to display 1 2 3 4 5 6 7 8 9
etc.

Everything else on my page - sorting etc is working great and also I can
get the PageIndexChanged event to fire.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top