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

Winforms: Setting datasource at runtime

2 Answers 263 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Charles Richardson
Top achievements
Rank 1
Charles Richardson asked on 26 Oct 2007, 05:25 AM
Simple question: How do I set the datasource of a report at runtime. I want to only display one record. (There is also a subreport in the report). This is a Windows forms app, so it would be displayed in the Windows forms viewer.


2 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 30 Oct 2007, 08:51 AM
Hello Charles,

Telerik Reporting is an embedded reporting engine and all the report constructions and initializations are done into program code. The report designer helps us to describe the report definition (layout; data binding; report parameters; filters etc.) in a visual manner and serializes all code construction inside the InitializeComponen() method.

To initialize the report's DataSource property by hand and outside the InitializeComponen() method, please review this topic from the Reporting documentation and just copy the provided code snippets.

Let us know if you have other questions.

 
Best wishes,
Ivan
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sekar
Top achievements
Rank 1
answered on 22 Apr 2009, 09:54 PM
The above help link is broken and use this link instead. I came across this and thought it may be helpful if somebody visits this question again.
Tags
General Discussions
Asked by
Charles Richardson
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Sekar
Top achievements
Rank 1
Share this question
or