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()); }
private void HienThiLoaiHang() { cbbLoaiHang.Properties.DataSource = busLH.GetDataActive(); cbbLoaiHang.Properties.ValueMember = "IDLoaiHang"; cbbLoaiHang.Properties.DisplayMember = "TenLoaiHang"; }