all groups > asp.net datagrid control > november 2004 >
You're in the

asp.net datagrid control

group:

DataGrid OnPageIndexChanged does not fire for first page link click



DataGrid OnPageIndexChanged does not fire for first page link click sytelus NO[at]SPAM yahoo.com
11/22/2004 2:29:54 PM
asp.net datagrid control: 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
Re: DataGrid OnPageIndexChanged does not fire for first page link click Ken Cox [Microsoft MVP]
11/22/2004 8:33:25 PM
Isn't that expected behaviour? After all, the index hasn't changed if you
don't go anywhere except where you are.

[quoted text, click to view]
AddThis Social Bookmark Button