A couple things.
First, the only versions where you are likely to have any luck at all are 3.0.4 and 3.5.1 - they have the best data binding support. Don't waste your time with any other versions.
Second, (and this is discussed many times in other threads) you must understand the following rules:
Third, you may want to look at the RootChildGrandchildWinFormTest sample (http://www.lhotka.net/cslacvs/viewvc.cgi/samples/trunk/RootChildGrandchildWinFormTest/). You can use TortoiseSVN to get it directly from the repository (http://www.lhotka.net/cslanet/Repository.aspx).
These concepts are discussed in the Using CSLA .NET 3.0 ebook, along with the code in PTWin that safely unbinds an object from a BindingSource (thanks to the first rule this is not so easy).
Fwiw, Miguel Castro just checked in a new extender control for CSLA .NET 3.6 that should handle the unbinding/rebinding mess automatically - making it easy to implement Save/Cancel buttons.
I rearranged the samples for better organization – please remember
that these links go directly into the live source repository.
I suggest starting here:
http://www.lhotka.net/cslacvs/viewvc.cgi/samples/trunk
and navigating down through the folder structure into the
CslaNet area, and either cs or vb depending on your language choice. Some
samples are only in one language or the other, and I don’t remember which
language(s) that one uses.
Rocky
From: Codelines
[mailto:cslanet@lhotka.net]
Sent: Tuesday, February 24, 2009 7:05 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] CancelEdit Funnyness : Not decrementing
EditLevel()?
The link http://www.lhotka.net/cslacvs/viewvc.cgi/samples/trunk/RootChildGrandchildWinFormTest/ is
inaccessible. Do you have another link?
RockfordLhotka:...
- You must never call BeginEdit/CancelEdit/ApplyEdit manually on the business object while it is data bound
...
Does this also apply if you have disabled the IEditableObject interface? My guess would be no since the BO will now ignore any BeginEdit, etc. calls from the data bindings.
I’m sure the rules are different if you disable
IEditableObject. That is honestly not an area I’ve explored, so I can’t
say exactly what happens in that case – you’ll need to figure that
out.
Rocky
From: rsbaker0
[mailto:cslanet@lhotka.net]
Sent: Tuesday, February 24, 2009 10:12 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] CancelEdit Funnyness : Not decrementing
EditLevel()?
RockfordLhotka:
...
- You must never call BeginEdit/CancelEdit/ApplyEdit manually on the business object while it is data bound
...
Does this also apply if you have disabled the IEditableObject interface? My
guess would be no since the BO will now ignore any BeginEdit, etc. calls from
the data bindings.
awbacker:P.S, This text edit area does not work properly in FF 3. Any key that has an action in a web page (slash,up,down,etc) is handled directly by FF, skipping the text edit. So, i cant navigate, type slash (or apostrophe!), and so on. URG! I resorted to typing this in an external editor (EditPlus), so sorry for any spelling issues.
That's unfortunate. But then this version of Community Server is several years old now. It is great that the web is "standards based", but I guess standards only last a couple years before changing
The challenge is that it took about 6 hours of work for Magenic to upgrade its internal forums to the new version, and they were reasonably current. I shudder to think how many hours of work it will take me to upgrade this version to anything current...
Copyright (c) Marimer LLC