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

Displaying Dynamically Generated Columns in Report

1 Answer 713 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
Monik
Top achievements
Rank 1
Monik asked on 18 May 2015, 12:05 PM

I have a report where my columns coming from Stored Procedure are dynamically generated using Pivot
Now there are following points to be focused on:
1. Number of columns that will be generated is not fixed
2. Since columns are generated dynamically, they are not seen in data explorer
3. Name of dynamic columns keeps on changing
How do i display them on report

 

Please Guide

1 Answer, 1 is accepted

Sort by
0
Accepted
Stef
Telerik team
answered on 20 May 2015, 12:38 PM
Hello Monik,

You will need to create the report at run-time.

The recommended approach for building/modifying reports is to use the integrated in Visual Studio Report Designer and create a sample report with test data and the layout you need to achieve. Then you can re-use the code auto-generated in the report's designer.cs file.

All modifications on the report can be done at run-time prior to displaying/processing the report. The attached demo project illustrates the settings for building a Table item based on the data schema.


Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Report Designer (standalone)
Asked by
Monik
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or