-
Hi, I need some help with EditableRootListBase class binding issue. I have EmployeeAccountList binded to DataGridView used on a Windows Forms. Then When I change some data and try save then I get an exception: {"Edit level mismatch in AcceptChanges"} I guess the problem is with the binding...
-
I have a working ListFactory Update method but I like to look at an example if there is one out there. My solution required me to make some protected methods public in the list (like the deleted list). This makes me think there may be a better solution. I looked in the 2008 Business Objects and new Using...
-
Thanks rocky for the response By the way I’m 1 of the clients that didn't wait to get your valuable training product I just bought it when the price was still hi Anyways I see the think about not passing in the overload but, what about the question I had in the post about the save of the root...
-
Hi, I'm calling SaveItem in DynamicListBase and seeing some incorrect (i think) behaviour. I'm using CSLA.NET 4.0.0 with WPF. I've set RaiseReplaceEvents to true, and I've tried this binding to a ListView and an Infragistics XamDataGrid. The first problem I had was that exceptions were...
-
ERLB exists to address one very specific set of requirements: a list of root objects, bound to a datagrid, where changes to a row (object) are committed as soon as the user leaves that row. Not to be too flippant, but any other use of ERLB is outside of its design parameters, and I wish people the best...
-
Hi, Can anyone help me with this one please...? I am using an EditableRootListBase object within a ( WinForms ) maintenance form as a container for a bunch of business objects. In fact the ERLB is used for binding the data entry fields, a grid, and an infragistics treeview which provides node level databinding...
-
Hello, I have an EditableRootListBase object bind with DataGridViev by Bindingsource object. The problems starts when database error occur (ex. Primary key validation – database is Postgresql) , I get an unhandled exception. My intentions is to catch that exception in UI layer, provide processed...
-
Fair enough. ERLB is a collection of root objects that can be independently updated, that's true. It is specifically designed to be bound to a datagrid, and to respond to the data binding methods from the datagrid so it knows to automatically update the objects. If you are binding it to a datagrid...
-
Really if you don't want autosave you might be using the wrong base class. ERLB is all about autosave... But if you want to try and make it work, override the save item method and make it a no-op until you want it to really run. Please be aware that you are clearly outside the scope of the intended...
-
That is an oversight, ERLB will have a default AddNewCore that invokes DataPortal.Create<T>, hopefully in the Beta 3 release.
-
Hi, I noticed that BusinessListBase now has a default implementation of AddNewCore but the same is not true for EditableRootListBase, is this by design? Luigi
-
If it hasn't been said before in this thread, ERLB is designed for one thing and one thing only: to support in-place datagrid editing where you want changes to a row to be saved as the user leaves that row. Any other use of the ERLB requires that you emulate data binding as expected by the ERLB....
-
[quote user="AaronH"] The second issue is that when I call BeginEdit/ApplyEdit/BeginSave() on any of the objects, it makes 2 calls to the dataportal. So what happens is that either DP.Insert or DP.Update is invoked twice. [/quote] This one is easy. ERLB is designed to save the object for you...
-
That's not correct; a root object in Csla terms means its saved independantly of other objects. So when you leave the row in SL, it should ONLY save that row's object, not the entire list. You should simply be able to bind the ERLB to your grid and have it work, i would think. That's how...
-
If this is an ERLB, have you checked to make sure the delete operation succeeds? ERLB will immediately trigger the delete operation, and if that fails the item won't be removed from the collection, because of course it wasn't removed from the database.
-
I'm having quite a bit of trouble figuring out why Remove will not remove an item from a ERLB instance. The Add method works fine. I did create workaround that works. I added a Delete method to my list which removes from the Items list of the ERLB, like this... Public Sub Delete( ByVal object As...