[转帖]DataGrid的自定义分页UserControl(24) NextPage.Enabled = true; LastPage.Enabled = true; PrevPage.Enabled = true; ViewState["currentpage"] = PageIndex; FillGrid(proc,(int)ViewState["currentpage"],pagesize,datagrid); } catch(Exception) { return;