public void DataBindToGridview() { ZWL.BLL.ERPDangAn MyModel = new ZWL.BLL.ERPDangAn(); GVData.DataSource = MyModel.GetList(" IFDel='��' and FileName Like '%" + this.TextBox1.Text + "%' and " + GetDicNameCondition() + " 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(); }
public void DataBindToGridview() { ZWL.BLL.ERPDangAn MyModel = new ZWL.BLL.ERPDangAn(); GVData.DataSource = MyModel.GetList(" IFDel='是' and FileName 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(); }
public void DataBindToGridview() { GVData.PageSize = AspNetPager1.PageSize; GVData.PageIndex = AspNetPager1.CurrentPageIndex - 1; ZWL.BLL.ERPDangAn MyModel = new ZWL.BLL.ERPDangAn(); DataSet ds = MyModel.GetList(" IFDel='否' and FileName Like '%" + this.TextBox1.Text + "%' and " + GetDicNameCondition() + " order by ID desc"); GVData.DataSource = ds; GVData.DataBind(); AspNetPager1.RecordCount = ds.Tables[0].Rows.Count; }