IsSavable is always true?

IsSavable is always true?

Old forum URL: forums.lhotka.net/forums/t/4736.aspx


Cosmin posted on Tuesday, April 22, 2008

Hi,

Is IsSavable flag always set after .BeginEdit() call? I'm trying to bind the ApplyChanges.Enabled button property to the flag but it seems that it is always set.
Any solution?

Thanks,
Cosmin

RockfordLhotka replied on Wednesday, April 23, 2008

It should not always be true, no.

However, that property isn't bindable, so it is quite likely that your button isn't changing state because data binding can't bind to that property.

In WPF this is the reason for Csla.Wpf.ObjectStatus, and in Windows Forms you should read this article.

Copyright (c) Marimer LLC