ASP.NET 2.0 Object Binding

G

Guest

I have problems binding with the new ObjectDataSource control, here is my
sample object:

Customer
FirstName
LastName
Phones (Child Collection)

I want to bind my Customer object to a FormView and at the same time reusing
the same Customer instance, bind a GridView with the customer phones. I
don't see how to bind the GridView to a property of my customer object.

As far as I can see, I don't control the instance of the object, I found
information about using ObjectCreating, but that event is never fire if the
SelectMethod is static, which is my case.

How should I do it?


Thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top