Hi Jeronimo,
The ObjectDataSource creates data source at runtime. You can get the object
instance in the ObjectDataSource.ObjectCreated event. In the
ObjectDataSourceEventArgs, the ObjectInstance property is the reference to
the created data source object.
HTH.
Kevin Yu

Signature
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Jeronimo Bertran - 04 Apr 2006 18:08 GMT
Hi Kevin,
Thanks for the post. The ObjectInstance as you mentioned returned de data
source object. But how can I access the underlying dataset that was
populated through the object's select statement?
Thanks again,
Jeronimo
Kevin Yu [MSFT] - 05 Apr 2006 04:15 GMT
Hi Jeronimo,
To access the DataSet that populates the objects, you need to write extra
code in the object class. For example, you can put a property in the class,
so when we get that object, we can get the DataSet from the property. HTH.
Kevin Yu

Signature
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
Jeronimo Bertran - 05 Apr 2006 23:20 GMT
ok Thanks
Kevin Yu [MSFT] - 06 Apr 2006 06:56 GMT
You're welcome.
Kevin Yu

Signature
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."