首页 > 代码库 > RDLC报表引用ObjectDatasources实例数据源

RDLC报表引用ObjectDatasources实例数据源

ReportView1.LocalReport.DataSources.Clear();
ReportDataSource ds = new ReportDataSource("DXYQDataSet_Performance_devices", ObjectDataSource2);
ReportView1.LocalReport.DataSources.Add(ds);
ReportView1.LocalReport.Refresh();

RDLC报表引用ObjectDatasources实例数据源