-
I figured it out Jonny... My RefreshSchedules (which I call after any remove,assign or moving around of the sequenceno's, now looks like this: Private Sub RefreshSchedules() With ProjectSchedulesBindingSource .EndEdit() sortedScheduleList = New Csla.SortedBindingList(Of ProjectSchedule)(mPROJECT.ProjectSchedules) sortedScheduleList.ApplySort("SequenceNo"
-
OK Jonny, It kind of works - in that what you suggested is correct - and I had foiund that before. But that solution was dependent on my datagridview being bound to a sortedbindinglist, so that I could maintain the "Sort" of SequenceNo. So, with your fix in place. I Call a method "RefreshSchedules" - with the intent of just pulling
-
Thanks Jonny - I'll give it a try... such a shame I have to address this in the UI because of Winforms limitations on binding list sorts. Oh well... Will give it a try. Thanks, Graham
-
Hi gents, Have an issue. I have a Parent/Children BO that requires that the Children (BusinessBindListBase) is sorted by a SequenceNo column. I tried to adopt a SortedBindingList methodology with this, but no matter how I approach it, when I attempt to Save the Parent, I get an EditLevel Mismatch. Basically, in the UI (Windows Forms), I have up/down
-
never mind. I figured it out. I created a "CustomFilters" class, and created a number of methods, e.g. Public Shared Function DateGEFilter(ByVal item As Object, ByVal filterValue As Object) As Boolean Dim columnvalue As String = item.ToString ' assume filter is an array of string Dim value As String = CType(filterValue, String) If CType
-
Does anyone have an example of how I could implement an ApplyFilter method for FilteredBindingList other than the standard one which uses the "contains" logic. I'd actually like to subclass FBL to have a number of different filter operators, but I'm complete unfamiliar with the C# code that this version is created with. Would I be
-
Thanks Jonny - I'll look into that. is CanRunAsAffectedProperty just a tag of the property constructor?
-
I believe I figured out on of the issues; The propertyname I can derived as: Dim _propertychanged As String = PrimaryProperty.Name Curiously, the code appears to be working... Can I confirm that I do in fact have a recursion issue? If whilst checking a value that has risen a PropertyChanged event, my routine updates other members of that BO, do they
-
Hi gents, Haven't been here for some months which lays testament to how well I'm doing with CSLA 4.2 :) I need some direction on a business rule that I want to implement. For simplicity's sake, I basically have a form dialog that accepts several property values of a 'selection' object. This object is a businessbase object, with all
-
Thanks Rocky. Yep, I think my reworking falls under that technique. Graham