Пример #1
0
 private void LoadGridHangHoa()
 {
     gridHangHoa.DataSource = HangHoaBUS.LayToanBoHangHoa();
     repositoryItemLookUpEdit1.DataSource    = HangHoaBUS.LayToanBoHangHoa();
     repositoryItemLookUpEdit1.DisplayMember = "TenHangHoa";
     repositoryItemLookUpEdit1.ValueMember   = "MaHangHoa";
 }
        private void LoadGridHangHoa()
        {
            LoadCotDonVi();
            LoadCotLoaiHang();
            LoadCotPhanLoai();
            gridHangHoa.DataSource = HangHoaBUS.LayToanBoHangHoa();

            //ẩn một số cột không cần đùng
            gridHangHoa.Columns["KhoMacDinh"].Visible = false;
            gridHangHoa.Columns["XuatXu"].Visible     = false;
            gridHangHoa.Columns["NhaCungCap"].Visible = false;
        }
Пример #3
0
 private void LoadGridHangHoa()
 {
     gridHangHoa.DataSource = HangHoaBUS.LayToanBoHangHoa();
 }