Пример #1
0
        private void RP_NHTS_Load(object sender, EventArgs e)
        {
            List <SP_CHITIETPHIEUNHAPTRUSO_Result> tmp = db.SP_CHITIETPHIEUNHAPTRUSO(sophieu).ToList();
            BindingSource bs = new BindingSource();

            bs.DataSource = tmp;
            NHTS_RP rp = new NHTS_RP();

            rp.SetDataSource(bs);
            crv.ReportSource = rp;
            crv.RefreshReport();
        }