private void load_loaihang() { LoaiHangctrl khctr = new LoaiHangctrl(); txtLoaih.DataSource = khctr.getData(); txtLoaih.DisplayMember = "Tenloai"; txtLoaih.ValueMember = "Maloai"; txtLoaih.SelectedIndex = 0; }
private void load_loaihang() { LoaiHangctrl khctr = new LoaiHangctrl(); txtLoaih.DataSource = khctr.getData(); txtLoaih.DisplayMember = "Tenloai"; txtLoaih.ValueMember = "Maloai"; txtLoaih.SelectedIndex = 0; }