Пример #1
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPGuDingJiLu MyModel = new ZWL.BLL.ERPGuDingJiLu();
     GVData.DataSource = MyModel.GetList("GDName Like '%" + this.TextBox1.Text + "%' order by ID desc");
     GVData.DataBind();
     LabPageSum.Text     = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text    = LabCurrentPage.Text.ToString();
 }
Пример #2
0
 public void DataBindToGridview()
 {
     ZWL.BLL.ERPGuDingJiLu MyModel = new ZWL.BLL.ERPGuDingJiLu();
     GVData.DataSource = MyModel.GetList("GDName Like '%" + this.TextBox1.Text + "%' order by ID desc");
     GVData.DataBind();
     LabPageSum.Text = Convert.ToString(GVData.PageCount);
     LabCurrentPage.Text = Convert.ToString(((int)GVData.PageIndex + 1));
     this.GoPage.Text = LabCurrentPage.Text.ToString();
 }
Пример #3
0
    public void DataBindToGridview()
    {
        GVData.PageSize  = AspNetPager1.PageSize;
        GVData.PageIndex = AspNetPager1.CurrentPageIndex - 1;
        ZWL.BLL.ERPGuDingJiLu MyModel = new ZWL.BLL.ERPGuDingJiLu();
        DataSet ds = MyModel.GetList("GDName Like '%" + this.TextBox1.Text + "%' order by ID desc");

        GVData.DataSource = ds;
        GVData.DataBind();
        AspNetPager1.RecordCount = ds.Tables[0].Rows.Count;
    }