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
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.