private void frptDanhSachHocSinh_Load(object sender, EventArgs e) { IList <ReportParameter> param = new List <ReportParameter>(); QuyDinhInfo m_ThongTinTruong = QuyDinh.LayThongTinTruong(); param.Add(new ReportParameter("TenTruong", m_ThongTinTruong.TenTruong)); param.Add(new ReportParameter("DiaChiTruong", m_ThongTinTruong.DiaChiTruong)); param.Add(new ReportParameter("NgayLap", DateTime.Today.Day + "/" + DateTime.Today.Month + "/" + DateTime.Today.Year)); this.reportViewerDSHS.LocalReport.SetParameters(param); IList <HocSinhInfo> hocsinh = HocSinhCtrl.LayDsHocSinh(); this.bSDSHocSinh.DataSource = hocsinh; this.reportViewerDSHS.RefreshReport(); }