Groups | Blog | Home
all groups > dotnet windows forms databinding > march 2005 >

dotnet windows forms databinding : Binding to checkbox and getting imediate results


Paul Brown
3/7/2005 5:44:51 PM
I have a simple object with some boolean properties which I've databound to
some checkboxes, these in turn affect a text control which is also bound and
this all works after a fashion.

What I want it to be able to do is to change the text whenever a checkbox is
selected, not when a check box loses focus which seems to be when the
databinding is updated.
I've currently got it bound to the Checked method which seems correct, but
I figure there must be a simple solution to this can anyone enlighten me
please.

Thanks

Paul

Hemang Shah
3/9/2005 11:26:45 AM
use the CheckChanged event and in that event user

this.textbox.text = "New Text";

hope that helps you


[quoted text, click to view]

AddThis Social Bookmark Button