void loadHM(string idclaim) { DataTable dt = new DataTable(); dt = l.DanhSachHangMuc(idclaim); if (dt.Rows.Count > 0) { gvDSTypeItem.DataSource = dt; gvDSTypeItem.DataBind(); } }
void loadDropType(string idclaim) { LoaiHangMucDAO l = new LoaiHangMucDAO(); DataTable dt = l.DanhSachHangMuc(idclaim); if (dt.Rows.Count > 0) { drTypeItem.DataSource = dt; drTypeItem.DataTextField = "TenLoaiHangMuc"; drTypeItem.DataValueField = "ID_LoaiHangMuc"; drTypeItem.DataBind(); } }