DataGrid.CurrentPageIndex = 5 -1 ;

解决方案 »

  1.   

    houlinghouling兄,目前我也是又设了DataGrid.CurrentPageIndex
    可是当设置了DataGrid.CurrentPageIndex时,WebForm1.aspx分页功能就不起作用了,也就是说,当1、2、3等页时,都没有作用了???怎么办?
      

  2.   

    Response.Redirect("webform2.aspx?id=DataGrid1.CurrentPageIndex");
    //把这一页的PAGEINDEX传到第二页.
    然后第二页返回的时候把这个CURRENTPAGEINDEX传到这个页面就是啦!
    USE DataGrid1.CurrentPageIndex=(int)Request.Querystring["id"];