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

Binding Data to a table

2 Answers 287 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Apostol Apostolov
Top achievements
Rank 1
Apostol Apostolov asked on 11 Sep 2009, 01:35 PM
Hello,

I'm new to telerik reporting and I've been trying for a few days to Bind a DataSet to a Table from the code-behind(I want to make it look like a simple table (like simple DataGrid in ASP.NET)). I want to make so the columns and the rows are automatically generated for every DataSet that I give to the Report, so with every DataSet the table will have different columns and rows. I create the dataset codebehind so i cannot use the design view like it's shown in the demos. I've searched the internet for a solution but coudn't find any. The thing is everytime I bind a dataset to the table some cells appear, but there is no data in the cells - they are blank(white as the background). I'm probably missing something but I can't figure out what, I would be grateful of you give me some tips.

Apostol

2 Answers, 1 is accepted

Sort by
0
Accepted
David Silveria
Top achievements
Rank 1
answered on 11 Sep 2009, 02:27 PM
As far as I know there is no AutoGenerateColumns property for the table item and in fact I've not encountered such functionality in Crystal and Reporting Services either. The matrix and table items in reporting products are much different than standard ASP.NET table and there cannot be comparison between both. In order to see data, you should set the Value property of the textbox items in the table to your specific fields. Currently the table would probably render as much empty rows as the number of rows in your datasource.

Cheers!
0
Apostol Apostolov
Top achievements
Rank 1
answered on 11 Sep 2009, 02:53 PM
Thank you, I've just figured that out by myself :). I solved my problem but I was just wondering if columns could be inserted codebehind. I'd be grateful for your assistance.

Apostol
Tags
General Discussions
Asked by
Apostol Apostolov
Top achievements
Rank 1
Answers by
David Silveria
Top achievements
Rank 1
Apostol Apostolov
Top achievements
Rank 1
Share this question
or