开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜