edit level in child collection

edit level in child collection

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


PederSvaleng posted on Friday, August 31, 2007

I'm digging into the edit level in csla, and I have a question about Project Tracker. I'm starting with an emty resources collection in project edit, then I add (without any apply in between).

Then the edit levels are like this:

_project.Editlevel 2

_project._resources.Items[0].Editlevel 2
_project._resources.Items[1].Editlevel 1
_project._resources.Items[2].Editlevel 1
_project._resources.Items[3].Editlevel 1

Why does the first item get editlevel 2 but all the rest 1? I haven't really search the forum for this, but anyway..

 

 

 

RockfordLhotka replied on Saturday, September 01, 2007

There's a recent thread on data binding that you should read. And you should make sure you are looking at the 3.0.2 version, as it is the only one that's reliable in this regard.

Data binding always has the "current" object at an elevated edit level. In ProjectEdit for example, the Project itself is "current", and one of the line items bound to the grid is "current". The currency is managed by the bindingsource objects. Each bindingsource has one "current" object, and that object will be at an elevated edit level.

PederSvaleng replied on Monday, September 03, 2007

Thank's for your reply! I'll check it out...

Copyright (c) Marimer LLC