PageIndexChanging is an event of GridView not page. To add this event
handler, add onpageindexchanging="<name of the PageIndexChanging handler>" to
the <asp:GridViewelement in the aspx page.
<asp:gridview id="x" runat="server"
onpageindexchanging="x_PageIndexChanging" ... >
Hope this helps?
"Jason Huang" wrote:
Hi,
In my C# 2.0 web form project, I have GridView1 in Form1.aspx.
I am wondering why I can't find the PageIndexChanging event in the
Form1.aspx.cs but the GridView1 still can go to other pages.
So, where exactly does the C# 2.0 web handle the PageIndexChanging thing?
Thanks for help.
Jason