Hello,
I have a report with just one table. Rather than setting the DataSource of the report itself I set the datasource of the table. I want to be able to access the current data item and calculate a value in a text box within the table based on that data.
In doing similar work on the detail ItemDataBound method I am able to access the data using:
DetailSection section = (DetailSection)sender;
MyObject obj = section.DataObject.RawData as MyObject;
However when I do the same on the table's ItemDataBound method:
Table table = (Table)sender;
MyObject obj = table.DataObject.RawData as MyObject;
... the obj being returned is not null but a 'new' instance of a MyObject.
Please could you let me know how I can get around this problem?
Thanks, Carl