Hello there,
I am creating a report whose datasource is an array of a custom object. I am displaying properties from my custom objects in text boxes successfully, however I also want to populate a table from a collection that is a property on my custom object.
If I use the NeedDataSource of the table I can't see how to access the current business object from the report's data source. If I try the following in the itemDataBinding the table does not get populated with any data:
private void detail_ItemDataBinding(object sender, EventArgs e) |
{ |
Log.Debug("detail_ItemDataBinding"); |
DetailSection section = (DetailSection) sender; |
MyObject c = section.DataObject.RawData as MyObject ; |
tblHistory.DataSource = c.History; |
} |
Please can anyone advise where I am going wrong?
Many thanks, Carl