CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Forum has moved

New location: CSLA .NET forum


CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • Browse Site by Tags

    Showing related tags and posts across the entire site.
    • Problem Binding a BusinessListBase to DataGridView on WinForms

      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...
      Posted to CSLA .NET discussion by foxhard on Wed, Jul 4 2012
    • Example of ListFactory Update Method

      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...
      Posted to CSLA .NET discussion by csmith1 on Tue, Feb 8 2011
    • Re: Saving Not being called IN BindingListBase(Of Items, Item)

      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...
      Posted to CSLA .NET discussion by vbbeta on Thu, Oct 14 2010
    • A couple of issues with the UpdateComplete handler for SaveItem in DynamicListBase

      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...
      Posted to CSLA .NET discussion by RSinden on Wed, Aug 18 2010
    • Re: Undoing Changes Within An EditableRootListBase

      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...
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Jun 30 2010
    • Undoing Changes Within An EditableRootListBase

      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...
      Posted to CSLA .NET discussion by NickTaylor on Wed, Jun 30 2010
    • EditableRootListBase exception handling

      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...
      Posted to CSLA .NET discussion by michu on Fri, Jun 25 2010
    • Re: EditableRootList and AutoSave?

      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...
      Posted to CSLA .NET discussion by RockfordLhotka on Sat, Jun 5 2010
    • Re: EditableRootList and AutoSave?

      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...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Jun 4 2010
    • Re: AddNewCore

      That is an oversight, ERLB will have a default AddNewCore that invokes DataPortal.Create<T>, hopefully in the Beta 3 release.
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Jun 2 2010
    • AddNewCore

      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
      Posted to CSLA .NET discussion by lds on Wed, Jun 2 2010
    • Re: Editable root list vs. editable root collection

      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....
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Apr 1 2010
    • Re: Update object reference bound silverlight listbox after save

      [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...
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Mar 31 2010
    • Re: Update object reference bound silverlight listbox after save

      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...
      Posted to CSLA .NET discussion by Andy on Tue, Mar 30 2010
    • Re: ERLB Remove method doesn't remove

      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.
      Posted to CSLA .NET discussion by RockfordLhotka on Sat, Mar 27 2010
    • ERLB Remove method doesn't remove

      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...
      Posted to CSLA .NET discussion by CalvaryLogic on Fri, Mar 26 2010

    Copyright (c) 2006-2014 Marimer LLC. All rights reserved.
    Email admin@lhotka.net for support.
    Powered by Community Server (Non-Commercial Edition), by Telligent Systems