Thursday, March 29, 2012

Paging Setup

When I turn on paging for a databound GridView I get the following options for navigation
NextPreviousNumericNextPreviousFirstLastNumericFirstLastHowever, I would like to show the NextPrevious and Numeric in much the same way as paging is presented by Google

PREVIOUS 1 2 3 4 5 6 (7) 8 9 10 11 12 NEXT

Is there a way I can do this?

Set the mode to "Numeric"

and then in the Grid's "RowCreated" event (actually there's multiple points you could catch doing this at), look to see if the type of Row is the Pager, and then you can add controls (in this case, you'd add link buttons or just plain old links with javascript that mimics what the stock pager links do)


Thanks MorningZ,

I'll give that a go :)

0 comments:

Post a Comment