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

Filling Table with DataTable as a DataSource

1 Answer 212 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 01 Jul 2014, 10:04 PM
Hi everyone - I'm trying to fill a table on a report with a data table that I pull in at runtime.

The datatable pulls in fine, and the report shows up fine, my only issue is that when I set the datatable as the datasource for my table, it doesn't display anything.

I have a function that I set that fills my values in, and then one that takes in a datatable and is SUPPOSED to set it as the datasource and display all values into the table... but I can't figure out quite how to get it to actually write to the table.

Any ideas on what I could try? Do I need to go through and add rows programmaticaly and then add the individual cells??? I'm completely at a loss here, so any tips would be much appreciated.

1 Answer, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 02 Jul 2014, 03:23 PM
Hey found out what the problem was - SUPER simple, but figured I'd post a reply in case anyone has my same issue.

Basically what you have to do is just set the value of each of your tables text box to whatever column it maps to in your datatable. So lets say you have this datatable...

Quantity    |     UPC      |       Something
       1         |  1351351  |     abc
       2         | 3423532  |      def

Then your table's text boxes should have the values...
=Quantity
=UPC
=Something

and it maps it for you. I feel like an idiot but damn that was easy.
Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Share this question
or