Hello all,
I have a windows form with a grid that displays items that can be selected by the user using check boxes. Each item has zero or more sub-items attached to them. I would like to let the user select the main items from the grid then have a report that displays all the sub-items that were attached to the selected items.
I have tried creating an ObjectDataSource using the Report Designer with no success. I have tried to manually data bind the report by programmatically setting the DataSource of the report to an IEnumerable<SubItem> that I have created. In this case I set the expressions for the textboxes in the report to [=Property1] where Property1 is a public property of the SubItem class. This gives me a row for each item in the IEnumerable<SubItem> list but instead of displaying the value of the properties it prints [=Property1].
Is it possible to use the reports in this way? If so how? Thanks in advance.
I have a windows form with a grid that displays items that can be selected by the user using check boxes. Each item has zero or more sub-items attached to them. I would like to let the user select the main items from the grid then have a report that displays all the sub-items that were attached to the selected items.
I have tried creating an ObjectDataSource using the Report Designer with no success. I have tried to manually data bind the report by programmatically setting the DataSource of the report to an IEnumerable<SubItem> that I have created. In this case I set the expressions for the textboxes in the report to [=Property1] where Property1 is a public property of the SubItem class. This gives me a row for each item in the IEnumerable<SubItem> list but instead of displaying the value of the properties it prints [=Property1].
Is it possible to use the reports in this way? If so how? Thanks in advance.