コード例 #1
0
        private void HienThiLoaiHang(int IDLoaiHang)
        {
            cbbLoaiHang.Properties.DataSource    = busLH.GetDataActive();
            cbbLoaiHang.Properties.ValueMember   = "IDLoaiHang";
            cbbLoaiHang.Properties.DisplayMember = "TenLoaiHang";
            DataTable dt = busLH.GetDataByID(IDLoaiHang);

            cbbLoaiHang.EditValue = cbbLoaiHang.Properties.GetKeyValueByDisplayText(dt.Rows[0]["TenLoaiHang"].ToString());
        }
コード例 #2
0
 private void HienThiLoaiHang()
 {
     cbbLoaiHang.Properties.DataSource    = busLH.GetDataActive();
     cbbLoaiHang.Properties.ValueMember   = "IDLoaiHang";
     cbbLoaiHang.Properties.DisplayMember = "TenLoaiHang";
 }