private void BindGrid() { int DeptID = (int)HttpContext.Current.Session["DeptID"]; DelegationHistoryGridView.DataSource = SupplierBizLogic.FindDelegation2(DeptID).ToList(); DelegationHistoryGridView.DataBind(); DelegationScheduleGridView.DataSource = SupplierBizLogic.FindDelegation(DeptID).ToList(); DelegationScheduleGridView.DataBind(); }
protected void DelegationHistoryGridView_PageIndexChanging(object sender, GridViewPageEventArgs e) { //adin for page index int DeptID = (int)HttpContext.Current.Session["DeptID"]; DelegationHistoryGridView.DataSource = SupplierBizLogic.FindDelegation2(DeptID).ToList(); DelegationHistoryGridView.PageIndex = e.NewPageIndex; DelegationHistoryGridView.DataBind(); }