Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i want send data from gridview to report viewer
i read data from gridview and write them in datatable and send datatable to reportviewer datasource:

C#
ReportDataSource Rds = new ReportDataSource("DataSet1", dt1);
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.DataSources.Add(Rds);
this.reportViewer1.RefreshReport();


but i see empty records the number records in gridview and no anything
Posted
Comments
Sergey Alexandrovich Kryukov 22-Sep-14 15:55pm    
First of all, please specify what exactly do you mean by "grid view". Exact type name, please. There is a number of different unrelated but similar grid view types.
—SA
[no name] 23-Sep-14 2:33am    
could you pleae show full snippet for report porcessing

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900