Thursday, December 10, 2009

The GridView 'GridViewID' fired event PageIndexChanging which wasn't handled.

This is a common error when you are binding data to the data grid. you can correct it as giving following code to the  PageIndexChanging event.

protected void gridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
gridView.PageIndex = e.NewPageIndex;
gridView.DataBind();
}
Post a Comment