girdview
LoadData
private void LoadData(string idPB, string StartDate, string ToDate) { hmweb.Services.cChuyenMuc mChiPhi = new hmweb.Services.cChuyenMuc(); DataTable dtb = new DataTable(); dtb = mChiPhi.ChiPhi_Search(idPB, StartDate, ToDate); if (dtb.Rows.Count > 0) { pnlDanhSach.GroupingText = "Tìm thấy " + dtb.Rows.Count.ToString() + " mã chi phí"; grvDanhSach.DataSource = dtb; grvDanhSach.DataBind(); //ViewState["dtList"] = dtb; } else { pnlDanhSach.GroupingText = "Tìm thấy 0 mã chi phí"; } mChiPhi = null; }
protected void lbtFind_Click(object sender, EventArgs e) { grvDanhSach.DataSource = null; grvDanhSach.DataBind(); LoadData(cboPhongBan.SelectedValue, txtStartDate.Text.ToString(), txtToDate.Text.ToString()); }
pre
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)