C# 为什么我的RDLC报告没有填充最新数据?

C# 为什么我的RDLC报告没有填充最新数据?,c#,asp.net,dataset,rdlc,C#,Asp.net,Dataset,Rdlc,我有一个rdlc报告,它通过Datatable从数据库表加载数据,但问题是它只显示27条记录,而不是更多。甚至c#中的sql表和datatable也填充了数据,但没有填充到RDLC报告中 我在任何地方都使用了相同的代码和相同的问题 protected void Page_Load(object sender, EventArgs e) { //ASP.controls_resultlabel_ascx ResultLabel = new ASP.controls_resu

我有一个rdlc报告,它通过Datatable从数据库表加载数据,但问题是它只显示27条记录,而不是更多。甚至c#中的sql表和datatable也填充了数据,但没有填充到RDLC报告中

我在任何地方都使用了相同的代码和相同的问题

protected void Page_Load(object sender, EventArgs e)
    {
        //ASP.controls_resultlabel_ascx ResultLabel = new ASP.controls_resultlabel_ascx();

        if (!IsPostBack)
        {


            Fill_AuditsReport();


        }
    }


    public void Fill_AuditsReport() 
        {
            ReportViewer1.AsyncRendering = false;
            ReportViewer1.SizeToReportContent = true;
            ReportViewer1.ZoomMode = ZoomMode.FullPage;
            this.ReportViewer1.Reset();

            DataTable dt = new DataTable();
            Audits.ManageAudits MngAudits = new Audits.ManageAudits();

            dt = MngAudits.SelectAuditsInfo();

            ReportViewer1.ProcessingMode = ProcessingMode.Local;
            ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/DataManagementReports/AuditsReport.rdlc");
            ReportDataSource rpds = new ReportDataSource("DataSetAudits", dt);
            ReportViewer1.LocalReport.DataSources.Clear();
            ReportViewer1.LocalReport.DataSources.Add(rpds);
            ReportViewer1.Visible = true;
        }

即使是datatable在调试时也会填充完整的数据

rdlc文件中的表/矩阵上是否设置了筛选数据的筛选器?行组如何过滤数据?无条件,但仅按第一列中的名称分组是将具有相同名称的行组合在一起的分组?是的,如果您的姓名是tyler,则它将显示属于tyler的ll记录,并且您的姓名将显示一次,然后对于下一个姓名,下一条记录就是为什么它只显示27条记录。您的datatable可能有100条记录,但只有27个唯一的名称,并且分组将其压缩为仅显示27条记录。或者它没有显示数据表中存在的一些名称?