Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > ObjectDataSource - Complex binding

Reply
Thread Tools

ObjectDataSource - Complex binding

 
 
Ladislav Mrnka
Guest
Posts: n/a
 
      03-30-2009
Hello,

is there any straighforward easy way to use ObjectDataSource for two-way
binding of complex objects (non-flat objects).

I made simple proof of concept. It is possible to use FormView which binds
to complex object (main ObjectDataSource) - this FormView contains same basic
controls for flat part and ListView where each Item is represented by nested
FormView (all items are editable all the time) with its own ObjectDataSource.
Nested data sources use DataObject from main data source as their data access
class. I also had to implement lot of event handlers to make this work.

This implementation is so difficult and error prone so I decided not to use
it at all. Is there any easyer way to achieve this? I will probably implement
this without two-way data binding.

Note: My data object contains preset subobjects which all have to be
editable at the same time like the "header" part. Solution like Wizard is not
acceptable.

I don't like design where I need to separate "header" and repeatable items
into two parts - like FormView with separate DataSource for "header" and
ListView with second separate DataSource for repeatable items.

Thanks in advance for any ideas,
Ladislav


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ObjectDataSource with Complex Objects and 2 way Databinding =?Utf-8?B?VHJhaWwgTW9uc3Rlcg==?= ASP .Net 5 01-12-2007 10:53 PM
ObjectDataSource method as another ObjectDataSource David Thielen ASP .Net Web Controls 3 03-23-2006 01:50 AM
[XML Schema] Content type of complex type definition with complex content Stanimir Stamenkov XML 2 10-25-2005 10:16 AM
Complex data binding question, binding child objects of a custom collection. JcFx ASP .Net Datagrid Control 0 06-01-2005 04:01 PM
For expert on complex loops (reposted) - complex looping problem news.amnet.net.au Java 1 04-13-2004 07:10 AM



Advertisments