ZKPager
public void gvBind()
{
this.ZKPager1.SqlString = "select a.*,b.BillTypeName from VerifyBillList as a,BillType as b where a.BillTypecode=b.BillTypecode and VerifyCode='" + VerifyIndex + "'";
this.ZKPager1.PageSize = 10;
this.ZKPager1.IsMultiTableQuery = true;
this.gv1.DataSource = this.ZKPager1.GetDataView();
this.gv1.DataBind();
}
或者
public void gvBind()
{
DataSet ds=check.GetTrueFalseList(OrgCode);
this.ZKPager1.PageSize =10;
this.ZKPager1.DataSource = ds;
this.dgApply.DataSource = this.ZKPager1.GetDataView();
this.dgApply.DataBind();
}
protected void ZKPager1_PageChanged(object source, ZheKe.ToolSuit.PageChangedEventArgs e)
{
this.ZKPager1.CurrentPageIndex = e.NewPageIndex;
this.gvBind();
}