Hi there,
I am looking at generating reports based on a class that has the following structure:
ReportingDataSource00 has data that needs to be displayed only once on the report (header and footer), as well as a list of elements that need to be displayed in a table.
When I try to use ReportingDataSource00 as a ObjectDataSource, the wizard will only recognize the properties Header and Footer. Is it possible to use the DataItems list as a datasource for a list in the detail section of the report?
Best regardes
I am looking at generating reports based on a class that has the following structure:
public class DataItem{ public string ItemHeader { get; set; } public string ItemContent { get; set; } public string ItemFooter { get; set; }}public class ReportingDataSource00{ public ReportingDataSource00() { DataItems = new List<DataItem> { new DataItem {ItemContent = "ItemContent00", ItemFooter = "Footer00", ItemHeader = "Header00"}, new DataItem {ItemContent = "ItemContent01", ItemFooter = "Footer01", ItemHeader = "Header01"} }; ReportHeader = "Header"; ReportFooter = "Footer"; } public string ReportHeader { get; set; } public string ReportFooter { get; set; } public IEnumerable<DataItem> DataItems { get; set; }}ReportingDataSource00 has data that needs to be displayed only once on the report (header and footer), as well as a list of elements that need to be displayed in a table.
When I try to use ReportingDataSource00 as a ObjectDataSource, the wizard will only recognize the properties Header and Footer. Is it possible to use the DataItems list as a datasource for a list in the detail section of the report?
Best regardes
