private void frmThemDo_Load(object sender, EventArgs e) { LoaiDoDAL db = new LoaiDoDAL(); lueLoaiDo.Properties.DataSource = db.Select(); lueLoaiDo.Properties.DisplayMember = "TenLoai"; lueLoaiDo.Properties.ValueMember = "ID"; }
private void LoadLoaiDo() { LoaiDoDAL db = new LoaiDoDAL(); lueLoaiDo.Properties.DataSource = db.Select(); lueLoaiDo.Properties.ValueMember = "ID"; lueLoaiDo.Properties.DisplayMember = "TenLoai"; }
private void LoadLoaiDo() { LoaiDoDAL db = new LoaiDoDAL(); gcLoaiDo.DataSource = db.Select(); }