相关代码 |
|
try { this.DataGrid1.DataBind(); } catch { //判断当前页的索引是否正确 if(DataGrid1.CurrentPageIndex < 0 || DataGrid1.CurrentPageIndex>=DataGrid1.PageCount) { DataGrid1.CurrentPageIndex = DataGrid1.CurrentPageIndex -1; } this.DataGrid1.DataBind(); }
相关资源 |
|