Exemple #1
0
        void loadGridKhachHangByTenKH()
        {
            DataTable     dt = new DataTable();
            BUS_KhachHang bus_kh;

            //DTO_KhachHang dto_kh;
            //dto_kh = new DTO_KhachHang();
            //dto_kh.HOTEN = "Khách hàng 1";

            bus_kh = new BUS_KhachHang();
            dt     = bus_kh.ListKhachHang();

            for (int i = 0; i < dgrv_kh.ColumnCount; i++)
            {
                dgrv_kh.Columns[i].DataPropertyName = dgrv_kh.Columns[i].Name;
            }

            dgrv_kh.DataSource = dt;
        }