DATAGRID 分页问题

来源:百度知道 编辑:UC知道 时间:2024/07/03 13:37:09
把那个allowpaging设为true,不设allowcustompaging为true会出错,如果设为true,那个 上一页、下一页根本就不能按,那个 DataGrid1_PageIndexChanged 里也写了代码:DataGrid1.CurrentPageIndex=e.NewPageIndex;
this.bind();
谁能帮我解决哈。。。。

allowcustompaging是false就行
在DataGrid1_PageIndexChanged 里面写:
DataGrid1.CurrentPageIndex=e.NewPageIndex;
然后再把Page_Load里面的内容再写一遍。
最好是把Page_Load里面的内容写一个方法,那里调用,这里调用。