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

Programmatic or otherwise use of the table

2 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Al asked on 24 Sep 2009, 10:12 AM
Hi

I am new to reporting and have looked at using either crystal and Telerik.  I have to say that as a newcomer TR is many times more intuitive than CR.  However i am a little stuck on how to approch a problem.

I want to produce a grid type layout based on a users request at runtime.  The layout is just header rows and detail rows.  However i do not know how many columns there will be.  Ther could be as few as three or as many as 8.  The data requested by the user contains the number of columns and the approprate widths of each coumn.  This was made to work by a progammer using vb6 and CR by creating a grid of 10 columns and hiding the unwanted ones at runtime.

However, i guess we could add the columns at runtime using code behind.  Unforrtunately there is very few examples for me to look at.  Can someone provide some examples of adding columns programmatically to simple header detail table.

Is it posible using the group structure to do this without code behind.  So that the table automatically adds the headers along the top creating as many columns as neccessary and then places the row data below?

My Table        
Header 1 Header 2 Header 3 Header x
Row 1 detail 1 Row 1 detail 2 Row 1 detail 3 Row 1 detail x
Row 2 detail 1 Row 2 detail 2 Row 2 detail 3 Row 2 detail x
Row 3 detail 1 Row 3 detail 2 Row 3 detail 3 Row 3 detail x
Row 4 detail 1 Row 4 detail 2 Row 4 detail 3 Row 4 detail x




Many thanks

Al

2 Answers, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 28 Sep 2009, 12:29 PM
This forum talks about the very same thing: http://www.telerik.com/community/forums/reporting/telerik-reporting/how-to-customize-table-properties.aspx.

Cheers
0
Al
Top achievements
Rank 1
Iron
answered on 28 Sep 2009, 08:47 PM
Thanks i will check it out
Tags
General Discussions
Asked by
Al
Top achievements
Rank 1
Iron
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Al
Top achievements
Rank 1
Iron
Share this question
or