Attributes of DataGrid in ASP.NET

zhaozj2021-02-16  52

Paging handler;

void Page_Load (Object sender, EventArgs e) {if (CheckBox1.Checked) ItemsGrid.PagerStyle.Mode = PagerMode.NumericPages; else ItemsGrid.PagerStyle.Mode = PagerMode.NextPrev; if (IsPostBack!) {start_index = 0; ItemsGrid.VirtualItemCount = 100;} bindgrid ();

/ Bonding public function;

Void bindgrid () {itemsgrid.datasource = createDataSource (); itemsgrid.databind ();

/ Database's chains have been published in front,! // paging driver ID / / tab default style; <

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

New Post(0)