private void dgbind() { Hashtable htapp = (Hashtable)Application["appconf"]; string strcons = (string)htapp["cons"]; StoBusi = new BusiComm.StorageBusi(strcons); DataTable dtout = StoBusi.GetProviderToGoods(this.txtProviderID.Text.Trim(), this.txtProviderName.Text.Trim()); if (dtout == null) { this.SetErrorMsgPageBydir("查询出错,请重试!"); return; } else { this.TableConvert(dtout, "采购计量单位", "ComputationUnit"); dtout.TableName = "供应商供应货品清单"; DataTable dtexcel = dtout.Copy(); Session["QUERY"] = dtout; } UcPageView1.MyDataGrid.PageSize = 10; DataView dvOut = new DataView(dtout); this.UcPageView1.MyDataSource = dvOut; this.UcPageView1.BindGrid(); }