Exemplo n.º 1
0
        //Load DatagridView
        private void LoadDataGridView()
        {
            ResultTable = BUS_KhachHang.GetDataTable();
            dgvDanhSachKhachHang.DataSource            = ResultTable;
            dgvDanhSachKhachHang.Columns[0].HeaderText = "Mã KH";
            dgvDanhSachKhachHang.Columns[1].HeaderText = "Tên chú rể";
            dgvDanhSachKhachHang.Columns[2].HeaderText = "Tên cô dâu";
            dgvDanhSachKhachHang.Columns[3].HeaderText = "Điện thoại";
            dgvDanhSachKhachHang.Columns[4].HeaderText = "Địa chỉ";


            //dgvDanhSachKhachHang.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            dgvDanhSachKhachHang.ReadOnly = true;
            //dgvDanhSachKhachHang.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            dgvDanhSachKhachHang.MultiSelect = false;
        }
Exemplo n.º 2
0
 //Update datagridview
 private void UpDateDataGridView()
 {
     ResultTable = BUS_KhachHang.GetDataTable();
     dgvDanhSachKhachHang.DataSource = ResultTable;
 }
 public frmQuanLyKhachHang()
 {
     InitializeComponent();
     ResultTable = BUS_KhachHang.GetDataTable();
 }
 public frmQuanLyKhachHang(string TableID)
 {
     InitializeComponent();
     IDTable     = TableID;
     ResultTable = BUS_KhachHang.GetDataTable();
 }