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

Tabular design

1 Answer 65 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anzar
Top achievements
Rank 2
Anzar asked on 13 Mar 2013, 05:11 AM
Hi,
I want to design  telerik report like below attachment. How to  create tables in reports?. Also the data source is from a data set, containing multiple tables like basic details,qualification details and travel details. How to set all of the data table's as a data source for report?.

Thanks & Regards
Anzar.M

1 Answer, 1 is accepted

Sort by
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 15 Mar 2013, 11:56 AM
The table can be dragged from the toolbar and that's about it (read more here http://www.telerik.com/help/reporting/table-working-with-table-cross-table-list-items.html)

As to the DataSet - you can use the DataSource of the report and on ItemDataBinding swap the data-sources:
private void Report2_ItemDataBinding(object sender, EventArgs e)
{
    var ds = this.DataSource as DataSet;
    this.table1.DataSource = ds.Tables[0];
    this.table2.DataSource = ds.Tables[1];
    //...
    //set the report's DataSource to null
    this.DataSource = null;
}

You can also create a public property on the Report class which will take DataSet and when it is set, you can manually set each DataTable as DataSource to the corresponding report table but I believe the first approach is simple enough
Tags
General Discussions
Asked by
Anzar
Top achievements
Rank 2
Answers by
Hadib Ahmabi
Top achievements
Rank 1
Share this question
or