This is a migrated thread and some comments may be shown as answers.

Radgridview binding to pre-made reports

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joris
Top achievements
Rank 1
Joris asked on 04 Mar 2010, 09:51 AM
Hi,

I have a winform application where a user can select in a combobox some categories. If a category is selected, the query related to that category will be executed and showed in a radgridview. Now I would like that the radgridview will be showed in a report by clicking on a button.

The clue is that I want different layouts for each category so I made 3 reports by the build-in designer.

Is it possible that when I click on the 'generate report' button, I bind the dataset I get from the radgridview to a report that was pre-made and show that report in a reportviewer on a form ?

I tried with the RadGridReportingLite libary you've provided but I can't get it to work cause there the reports are programmatically build.

Hoping op positive answer.
Thanks in advance.

Greetz

1 Answer, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 04 Mar 2010, 10:22 AM
The documentation (http://www.telerik.com/help/reporting/designing-reports-connecting-data-to-report.html) shows the supported datasources, so yes you would be able to bind a report to a dataset.  In fact this is what the report is doing when you use the report wizard - it creates a dataset for you and populates it in the report constructor. What is the problem you've encountered or you have not tried it yet and just asking?

Cheers
Tags
General Discussions
Asked by
Joris
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Share this question
or