Exemplo n.º 1
0
 //Called when making use of paging on table when more than about 10 items by default
 protected void OnPageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     //The current paging index that has been selected gets changed to the new index
     EmployeeGridView.PageIndex = e.NewPageIndex;
     //Calls for the table source to be refreshed with new paging data
     this.Binding(Base.Paging());
 }
 protected void GridViewItem_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     GridViewItem.SelectedIndex = -1;
     GridViewItem.PageIndex     = e.NewPageIndex; //The current paging index that has been selected gets changed to the new index
     this.ItemBinding(BaseItem.Paging());         //Calls for the table source to be refreshed with new paging data
 }