Can't change values of databound Entity

Posts   
 
    
NLEdward
User
Posts: 5
Joined: 24-Nov-2005
# Posted on: 05-Mar-2007 20:35:54   

Hi,

I've got an application in which you can switch between a form with a datagridview to single record form. The first time a record (Primary Key is provided in the constructor of the form) is databound and changed all goes well.

The second time the same record is opened in the single record form the databinding goes well but changes to any of the databound values are not accepted by the form.

I've done some research and found out the following: The Event PropertyChanged of the Entity is raised after a databound field is changed on the form. Subsequently the Validating Event of the TextBox is raised but on entry the Cancel value of the CancelEventArgs is already set to True.

Does anyone know what can cause this behaviour or how it is possible that the e.Cancel is already True at the start of the validating Event.

Thanks, Edward Kranenburg http://www.grontmij.nl

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 05-Mar-2007 21:25:40   

Please post your llblgen pro version and runtime library build nr (see Guidelines how to obtain that number): http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7720

Frans Bouma | Lead developer LLBLGen Pro
NLEdward
User
Posts: 5
Joined: 24-Nov-2005
# Posted on: 06-Mar-2007 08:43:13   

LLBLGen Pro Version 2.0.0.0 Final (Released on November 6th, 2006) Runtime Library Build: 2.0.0.61107 Template Group : Adapter Language: VB.NET Platform: .NET 2.0 Database : MsSQL2005 Express Edition

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 06-Mar-2007 11:27:21   

First of all, please update your runtime library to the latest version (customer area -> v2.0 at the left to go to the downloads for v2.0).

I fail to understand why the cancel flag is set to true...

Frans Bouma | Lead developer LLBLGen Pro