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

Getting the data from Datasource

1 Answer 98 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manish
Top achievements
Rank 1
Manish asked on 07 Jan 2011, 11:03 AM
Hello All,
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

Sort by
0
Steve
Telerik team
answered on 07 Jan 2011, 05:39 PM
Hi Manish,

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.

Regards,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
Tags
General Discussions
Asked by
Manish
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or