DataGrid page statistics [ASP.NET]

xiaoxiao2021-03-06  57

protected system.web.ui.webcontrols.datagrid dglist;

===================================================

Private void dglist_pageindexchanged (object source, system.web.ui.webcontrols.datagridPageChangedeventargs e) {dglist.currentpageindex = E.NewpageIndex; binddata ();

private void dgList_ItemCreated (object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) {if (e.Item.ItemType == ListItemType.Pager) {System.Text.StringBuilder pagerString = new System.Text.StringBuilder (); pagerString .Append ("Total" INTTOTAL " DGList.pageCount " page per page E.Item.cells [0] .controls.addat (0, New LitralControl) "" Pagerstring.toString () ""));}}

转载请注明原文地址:https://www.9cbs.com/read-116896.html

New Post(0)