DataGrid OnPageIndexChanged does not fire for first page link click

S

Sytelus

When DataGrid with paging enabled shows numeric links for pages, you
get OnPageIndexChanged event fired when user clicks on any of the page
links - except the very first! Have anyone seen this behavior and know
any workarounds? The current workaround I know of is to look at
IsPostBack and Request.Form("__EVENTTARGET") and see if its set at
"GridName:_ctl0:_ctl1" or something like that which means first link
was clicked.
 
K

Ken Cox [Microsoft MVP]

Isn't that expected behaviour? After all, the index hasn't changed if you
don't go anywhere except where you are.
 

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

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top