use Break Point to where do it run

解决方案 »

  1.   

    DataGrid2.DataBind();
    DataGrid1.CurrentPageIndex=ViewState["index"];//加上这个
    DataGrid2.CurrentPageIndex = e.NewPageIndex;改成
    ViewState["index"]=e.NewPageIndex;
    测试看看
      

  2.   

    我调试了一下,好象是DataGrid2.PageIndexChanged= +new  System.Web.UI.WebControls.DataGridPageChangedEventHandler(this.DataGrid2_page);未起作用!该怎么做啊?
      

  3.   

    play with the example inhttp://msdn.microsoft.com/msdnmag/issues/03/10/CuttingEdge/default.aspx