public void HienThiChiTietHoaDon(DataGridView dg, BindingNavigator bn)
        {
            BindingSource bs = new BindingSource();

            bs.DataSource    = data.LaydanhSachChiTietHoaDon();
            dg.DataSource    = bs;
            bn.BindingSource = bs;
        }
Esempio n. 2
0
        private void frmInHoaDon_Load(object sender, EventArgs e)
        {
            ChiTietHoaDonData chitietdata = new ChiTietHoaDonData();

            TT_NHOM_QLKS.Report.HoaDon hoadon = new TT_NHOM_QLKS.Report.HoaDon();
            hoadon.SetDataSource(chitietdata.LaydanhSachChiTietHoaDon());
            crystalReportViewer1.ReportSource = hoadon;
        }