public DanhSachPhieuNhapHang_Form() { InitializeComponent(); this.bulImportReceipt = new BUL_PhieuNhapHang(); this.gridControlDanhSachPhieuNhap.DataSource = this.bulImportReceipt.getAll(); // binding data for gridview // some columns that is not informative will be invisible this.gridViewDanhSachPhieuNhapHang.Columns[5].Visible = false; this.gridViewDanhSachPhieuNhapHang.Columns[6].Visible = false; this.gridViewDanhSachPhieuNhapHang.Columns[7].Visible = false; }
// refresh grid control datasource private void refresh() { this.bulImportReceipt = new BUL_PhieuNhapHang(); this.gridControlDanhSachPhieuNhap.DataSource = this.bulImportReceipt.getAll(); }