Click here to Skip to main content
15,881,092 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
i am using ajax controls in my project.
in that ajax tab control i had put one datagrid control.
had set the properties of grid


i.e. allowpagging=true;
pagesize=3;

when i clik in on next no it will show error.

i.e.
The GridView 'GridView1' fired event PageIndexChanging which wasn't handled.

can anyone help me put i am just a begginer in ajax.

thankx in advance.
Posted

1 solution

you have to manage PageIndexChanging method on your grid control

C#
protected void Gridview1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
    Gridview1.PageIndex = e.NewPageIndex;
    BindGrid();
}


so put this code on your page and you can go ahead

Bhavank
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900