Home
> Categories > asp.net The GridView ‘GridView1′ fired event PageIndexChanging which wasn’t handled
asp.net The GridView ‘GridView1′ fired event PageIndexChanging which wasn’t handled
In my early days of developing websites using ASP.NET, i came across the following particular issue.
Whenever i enable paging in my gridview and run the application, the application says, ‘GridView1′ fired event PageIndexChanging which wasn’t handled. I found the following solution very useful.
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e){GridView1.PageIndex = e.NewPageIndex;DisplayGridView();}




Hi,
This is very useful…..
Thanks,,
really simple and super…
thanks alot, been of help to me.
Hi,
This helped me a lot!
Thanks!
But where is DisplayGridView()?
Thank this help me lot.
GridViewPageEventArgs giving error.
i’m use vs.net2005 there is no NewPageIndex but only ( NewSelectedIndex)