gridview paging bug?

J

joerage

Hi,

I use a grid view in asp.net 2.0 connecting to a objectdatasource. The
datasource select method returns an arraylist of custom object. Reading
the documentation for the objectdatasource, it says that if the return
type of the select method is IComparable (which in my case is true), it
will do the paging automatically.

The paging seems to work until I have more than 10 pages.
For example if on first load of the list I have this shown for paging:
1 2 3 4 5 6 7 8 9 10 ... (All undescored except page 1)
And I hit the tree dots, the next page I have shows:
.... 11 12 13 14 15 16
Now the problem: If I click on page 12, I received this:
1 2 3 4 5 6 7 8 9 10 ... (All underscored except page 2 !!!)
So it has selected page two...

I am doing something wrong, or is this a bug?

Thanks, Joe
 

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,774
Messages
2,569,596
Members
45,143
Latest member
SterlingLa
Top