public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            ReportBangDiemTongKetCuaLop rpt = new ReportBangDiemTongKetCuaLop();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void btnXem_Click(object sender, EventArgs e)
        {
            ReportBangDiemTongKetCuaLop obj = new ReportBangDiemTongKetCuaLop();

            string lenh = "EXEC sp_INBANGDIEMTONGKETCUALOP '" + cmbLop.SelectedValue.ToString().Trim() + "'";

            DataTable dataTable = Program.ExecSqlDataTable(lenh);

            obj.SetDataSource(dataTable);
            obj.SetParameterValue("TENLOP", cmbLop.Text);

            crvBangDiemTongKet.ReportSource = obj;
        }