Groups | Blog | Home
all groups > dotnet windows forms databinding > february 2006 >

dotnet windows forms databinding : SuspendBinding method - strange behavior



Nik
2/14/2006 12:21:01 PM
Hello,

I noticed that, when I call the SuspendBinding method on a
BindingContext of a form, and then manually change something in the
underlying data source, it forces a refresh of all bound properties,
even though binding has been suspended. All values read are
System.DBNull in this case. I can't believe this is the intended
behavior. Can anyone shed some light on this?

I am using Framework v1.1.

Thanks.
Lefty
2/16/2006 10:00:51 AM
I think if you check the msdn documentation on SuspendBinding() you'll
see that it doesn't prevent changes in the datasource from effecting
the bound controls. It is a one-way suspension which keeps changes in
the bound controls from updating the datasource.
Nik
2/19/2006 8:29:53 AM
I did check the documentation, and the description is not very clear.
However, it does not matter anymore, as I rewritten my application
logic so this doesn't affect me. Thanks for answering, though.

Nik
AddThis Social Bookmark Button