Editable Root List Base and Hiercharchical Grid Controls?

Editable Root List Base and Hiercharchical Grid Controls?

Old forum URL: forums.lhotka.net/forums/t/3844.aspx


rsbaker0 posted on Monday, November 05, 2007

I'm trying to figure out how to handle a particular scenario with ERLB and a DevExpress XtraGrid control, which support direct editing of child collections. (e.g. a "+" is displayed next to the parent rows, and when you expand them, you get an embedded tab control with tabs show each child collection you have exposed).

The problem is that when you go from a row to one of its child collections, you "leave" the parent row, at which point ERLB saves the parent in its current state.

There are at least two related issues, one of which is that if the parent was dirty, it has now been replaced by its clone and the child collections displayed are effectively orphaned.

More generally, though, even if the parent wasn't dirty, it doesn't look like the object is even being "edited" once you leave the parent row for a child collection. I can see BeginEdit() being called for the rows in the child collection, but their EditLevel is 0 at this point.

Any thoughts on how to support this type of binding?

 

Copyright (c) Marimer LLC