private void NVTheo_LoaiQD_Load(object sender, EventArgs e) { try { DataTable dt_loaiqd = oLoaiQD.GetList_Compact(); clb_LoaiQD.DataSource = dt_loaiqd; clb_LoaiQD.ValueMember = "id"; clb_LoaiQD.DisplayMember = "ten_loai"; } catch (Exception) { } }
private void LoadCbo_Loai_QD() { DataTable dt = oLoaiQD.GetList_Compact(); DataRow[] drr = dt.Select("id in (4,5,9,10)"); foreach (DataRow row in drr) { row.Delete(); } dt.AcceptChanges(); thongTinQuyetDinh1.comB_Loai.DataSource = dt; thongTinQuyetDinh1.comB_Loai.DisplayMember = "ten_loai"; thongTinQuyetDinh1.comB_Loai.ValueMember = "id"; }
private void DanhSachQuyetDinh_Load(object sender, EventArgs e) { dtDSLoaiQuyetDinh = oLoaiQuyetDinh.GetList_Compact(); PrepareCboLoaiQD(); }