I have created a Report in the Designer which contains a Table with a fixed number of columns. When I added the columns, it set the column heading to the default "string= same as the database field name". In the application, we create a DataTable object(called DetailsTable) populating the column headings from a resource file and the table rows with the data. The Report DataSource is set through the NeedDataSource event shown.
What I would like to know is what expression can I use to bring in the column headings from the DataTable object?
The objective is to remove all "hardcoded" strings from our reports.
What I would like to know is what expression can I use to bring in the column headings from the DataTable object?
The objective is to remove all "hardcoded" strings from our reports.
private
void
table1_NeedDataSource_1(
object
sender, EventArgs e)
{
var objectDataSource =
new
ObjectDataSource();
objectDataSource.DataSource = ((BestFitStepDetailsReportView)
this
.DataSource).StepDetailsTable;
(sender
as
Processing.Table).DataSource = objectDataSource;
}