I have a GV in which I am data binding it manually. But the problem is that it is giving me this err:
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: The GridView 'gvAgentList' fired event Sorting which wasn't handled.
Same for the page indexing. Here is the function I wrote to do it from the code behind:
protected void gvAgentList_SelectedIndexChanged(object sender, EventArgs e)
{
string selectedEntity; //string for Labeling in Master Page!
int selectIdEntity; //int for storing Plan IDs in Plan Page!
GridViewRow row = gvAgentList.SelectedRow;
selectedEntity = row.Cells[2].Text.ToString();
selectIdEntity = Int16.Parse(row.Cells[1].Text.ToString());
Session["EntityIdSelected"] = selectIdEntity;
Session["EntitySelected"] = selectedEntity;
Response.Redirect("~/FrontEnd/Users.aspx?EntityID=" + row.Cells[1].Text.ToString());
}
I DONT know which event handler should I use here? Its not calling this function when I am doing a page index change! Any help?