Simple binding question

Posts   
 
    
sami
User
Posts: 93
Joined: 28-Oct-2005
# Posted on: 07-Feb-2006 16:17:50   

Is simple binding supposed to work same was as complex binding, regarding the case that if fieldvalidator returns false, the binded control is refreshed to previous state. Becouse, if I bind my entitycollection to datagrid, edit the column -> validator return false and column gets resetted to what ever it was showing before.

This doesn't seem to be the case when using simple binding, i.e. control doesn't get refreshed after validator return false (maybe becouse propertychanged event is not fired?)

Any comments?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39930
Joined: 17-Aug-2003
# Posted on: 07-Feb-2006 17:01:02   

sami wrote:

Is simple binding supposed to work same was as complex binding, regarding the case that if fieldvalidator returns false, the binded control is refreshed to previous state. Becouse, if I bind my entitycollection to datagrid, edit the column -> validator return false and column gets resetted to what ever it was showing before.

This doesn't seem to be the case when using simple binding, i.e. control doesn't get refreshed after validator return false (maybe becouse propertychanged event is not fired?) Any comments?

Correct, propertychanged event isn't fired when validator fails, as no value is set.

Frans Bouma | Lead developer LLBLGen Pro