-
Hi, I wonder if anyone could offer me some advice on this please:- I have an issue in relation to Windows Forms data binding and some of my business object properties. Following Rocky's expert advice in the past I use a binding source and bound fields to communicate between the UI and my business...
-
The best and most detailed information on dealing with Windows Forms is in the Using CSLA .NET 3.0 ebook - there's a chapter on the topic in that ebook. The basic thing to remember is that you must always properly unbind all business objects from the UI before attempting to save. The CslaActionExtender...
-
I am working on this application using CSLA 3.8. Its an MDI Winforms Application. This sample application uses Forms as against the winpart in the sample project trackers. I have easily implemented fetch and delete in these forms. But I have been trying without success to implement Save and Update. This...
-
Hi Rocky Any news on this? Apologies if this is something that's been implemented for CSLA 4.0 - haven't had the chance to test this out on 4.0 yet. I'm have a Silverlight project using CSLA 3.8.4 and the issue remains. I'm binding directly to the business object (MVVM will have to wait...
-
The new rules concept is part of CSLA 4, so it is not available in 3.8. But if you move your Windows Forms application to .NET 4, then you can use CSLA 4, and yes, the new rules concept will work with Windows Forms.
-
IEditableObject requires that the implementor (CSLA) take a snapshot of the object state when BeginEdit is called, so it can revert to that snapshot when CancelEdit is called. That is what n-level undo does, so CSLA uses its n-level undo behavior to implement IEditableObject. Actual n-level undo is never...
-
In your constructor you can set the DisableIEditableObject property to prevent data binding from interacting with n-level undo. You must be aware that data binding expects the object to honor IEditableObject, but there are some scenarios where you can disable the behavior and still get a workable UI...
-
I've encountered what appears to be a bug with the CancelEdit functionality in a Windows Forms app. Steps to reproduce: Launch Project Tracker (PTWin) and bring up the project edit form (any project will do) Type some stuff into the description field Shut down your SQL server instance Hit the apply...
-
Let me start simple. For example in "Project Tracker" example, if you open any project to edit you can see resources that assigned to this project, however, if you also open edit resource document with one of the resources already assigned to the project, the changes on resources, which is...
-
Hi Rocky, After some further playing around, you are of course right in that using a datagrid in conjunction with ERLB works fine providing you use the grid for manipulating the underlying data. I fully appreciate this is exactly what it is designed to do. What I can't appear to do easily is intercept...