If it is possible, I want to add a reportviewer (WinForms) dynamically at runtime from the code behind. I have not been able to find any sample code snippets here that show how to do this in C#. Is this even possible?
Thanks.
Dan
2 Answers, 1 is accepted
0
Milen | Product Manager @DX
Telerik team
answered on 02 Sep 2009, 01:30 PM
Hello Dan,
The report viewer is a regular windows control so you can add it to your windows form just the same way you can dynamically add a Button for example. Little hint: Add the control at design time and see for example the generated code in the InitializeComponent method of the Form.
Of course, you need to set the Report property of the viewer and call the RefreshReport method so that a report is rendered in the viewer.