private void LoadMonAn()
        {
            lstMonAn = MonAn_BUS.LoadMonAn();
            dtgrvDanhSachMonAn.DataSource = lstMonAn;

            if (lstMonAn == null)
            {
                return;
            }


            dtgrvDanhSachMonAn.Columns["ID"].HeaderText         = "ID";
            dtgrvDanhSachMonAn.Columns["TenNhomMon"].HeaderText = "Tên Nhóm Món";
            dtgrvDanhSachMonAn.Columns["TenMonAn"].HeaderText   = "Tên Món";
            dtgrvDanhSachMonAn.Columns["DonViTinh"].HeaderText  = "Đơn Vị Tính";
            dtgrvDanhSachMonAn.Columns["Gia"].HeaderText        = "Giá";
        }
Пример #2
0
        private void LoadMonAn()
        {
            lstMonAn = MonAn_BUS.LoadMonAn();
            dtgrvDanhSachMonAn.DataSource = lstMonAn;

            if (lstMonAn == null)
            {
                return;
            }


            /*  dtgrvDanhSachMonAn.Columns["ID"].HeaderText = "ID";
             * dtgrvDanhSachMonAn.Columns["TenNhom"].HeaderText = "Tên Nhóm";
             * dtgrvDanhSachMonAn.Columns["TenMonAn"].HeaderText = "Tên Món";
             * dtgrvDanhSachMonAn.Columns["DonViTinh"].HeaderText = "Đơn Vị Tính";
             * dtgrvDanhSachMonAn.Columns["Gia"].HeaderText = "Giá";
             *
             * dtgrvDanhSachMonAn.Columns["ID"].Width = 50;
             * dtgrvDanhSachMonAn.Columns["MaNhomMon"].Width = 100;
             * dtgrvDanhSachMonAn.Columns["TenMonAn"].Width = 221;
             * dtgrvDanhSachMonAn.Columns["DonViTinh"].Width = 100;
             * dtgrvDanhSachMonAn.Columns["Gia"].Width = 124;*/
        }