-
Windows Forms data binding is very particular about following its rules. And so is CSLA. The rules are relatively straightforward, but you can't deviate. The primary rule: every beginedit must have a corresponding canceledit/endedit on each object (parent, child, etc). Edit level mismatch occurs...
-
[quote user="Tiago Freitas Leal"] Besides sharing the experience, I think this also raises a point. If we must use BusinessBindingListBase for Windows Forms and BusinessListBase for WPF/Silverlight, suppose my application has both clients. I need to have duplicated Business*ListBase classes...
-
I encountered strange behavior of datagridview: In the parent object (invoice) I have a childlist (invoiceitemlist) that I expose through a property like this: Public ReadOnly Property InvoiceItemList() As Csla.SortedBindingList(Of InvoiceItem) Get Return _InvoiceItemList.GetSortedList End Get End Property...
-
WPF 3.5 introduced a binding option that solves this problem, so I removed IdentityConverter from CSLA at that point. I don't recall the specific binding option off the top of my head, but there's a way to tell the binding to always refresh. To my knowledge, Silverlight never had this same issue...
-
There is a blog post by Rocky here talking about IdentityConverter and WPF: http://www.lhotka.net/weblog/DataBindingIssueInWPFWithSolution.aspx The Csla.Wpf namespace in CSLA 3.8 contains the IdentityConverter class. In CSLA 4.1, the Csla.Xaml namespace for Silverlight does not appear to contain the...
-
I'm trying to implement a solution using the CSLA 4 framework with a WinForm interface. I have a BusinessBase class that represents an address. The address class has an editable property for State and County, and read-only lists for States and Counties. The goal is to have the class refresh the list...
-
Hey guys, So I've been working on a project using the latest CSLA from the SVN. I have it compiled and it seems to be working on Mono quite well except with one issue - databinding. Binding CSLA objects to comboboxes and datagridviews works just as it should in Windows Forms (using BusinessBindingListBase...
-
Hello, Two different combo boxes for a C# WinForms application that need to have a list of the same data. They need to be able to have different values at any given time, so they can't use the same BindingSource. I have a NameValueList business object that has an ID(Key) and Name(Value). I want to...
-
Hello community! I'm lost with the undo capabilities of CSLA. I have found several questions/answers dealing with the strange behavior of data binding under windows forms. But alas, I'm not using data binding at all in my test application. I'm using CSLA 3.8.4, C#, .NET 3.5SP1, VS2010, NHibernate...
-
After calling CheckRules, make a call to OnUnknownPropertyChanged - that will raise appropriate PropertyChanged events and should get you the desired result.