I have one ASP page in that I made one button name TelerikReport. Once I click on this button I need to fetch the data in Telerik Report veiwer using Datasource.
Can any one please help me on this .
Thanks in advance.
1 Answer, 1 is accepted
answered on 07 Jan 2011, 05:39 PM
If the data source for the report is DataTable for example, the code would be as follows:
protected void Button1_Click(object sender, EventArgs e)
var report1 = (this.ReportViewer1.Report as Telerik.Reporting.Report);
var DataTable = (DataTable)report1.DataSource;
Note the report object is exposed and available for usage, you just have to get familiar with its API.