views:

16

answers:

1

Is it possible to get to the object that an ObjectDataSource creates when calling the select function? Not the result of the select function itself but the object that is creates from the parameter specified in TypeName.

I would like to call some other functions on that same instance after Select is called. The other solution would be to DataBind manually.

+1  A: 

The ObjectCreated event will be able to give you the instance you want...

You'll have to hold a reference to that until you handle the Selected event

Rob Fonseca-Ensor
Sometimes it's so simple you don't think it's possible.
Jeroen
Not often enough that you come to expect it ;)
Rob Fonseca-Ensor