the code for pagging in data grid view in asp.net using C#
m using the code
protected void Grd2_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
Grd2.PageIndex = e.NewPageIndex;
Grd.PageIndex = e.NewPageIndex;
}
i have allow pagging = true where Grd2 is my grid name the pagging takes place o开发者_JAVA技巧n clicking 2 time.... i want the pagging should be on single click...
You have to bind the Grid again after you have set the PageIndex.
精彩评论