This is a migrated thread and some comments may be shown as answers.

Getting ObjectDataSource data object

2 Answers 110 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
LE DREAU Steeve
Top achievements
Rank 1
LE DREAU Steeve asked on 15 Jun 2010, 09:58 AM
Hi all,

I have a report with an objectdatasource bound to its datasource. I know the type of the object used into this objectdatasource. I would like to get this object from the report's code behind to execute some tasks but I can't find it anywhere nor how to do this.

Can you please help me ?

Thanks
Regards,

Steeve

2 Answers, 1 is accepted

Sort by
0
LE DREAU Steeve
Top achievements
Rank 1
answered on 16 Jun 2010, 08:13 AM
Up please :)

I'm really stuck, all I can get is the objectdatasource but I can't figure out how to get the embedded resulting object.

Thanks
0
LE DREAU Steeve
Top achievements
Rank 1
answered on 16 Jun 2010, 10:20 AM
I've found the solution :

In the needDataSource event, just use sender.DataObject.RawData.
Tags
General Discussions
Asked by
LE DREAU Steeve
Top achievements
Rank 1
Answers by
LE DREAU Steeve
Top achievements
Rank 1
Share this question
or