M
Martin
Hello,
i written a collection which holds instances of a specifc class. i added a
binding like that
textBox1.DataBindings.Add("Text", ((MyClass)oMyCollection[1],
"Description");
If the content of the textbox changed, the values are saved in the object of
the collection where the controls is bound to. my problem is that other
controls don't refresh their data. so if i change the value of a property in
my instance. the control still holds the old value. i tried the following:
this.BindingContext[((MyClass)oMyCollection[1],
"Description"].EndCurrentEdit();
but it wasn't the solution. any ideas?
i written a collection which holds instances of a specifc class. i added a
binding like that
textBox1.DataBindings.Add("Text", ((MyClass)oMyCollection[1],
"Description");
If the content of the textbox changed, the values are saved in the object of
the collection where the controls is bound to. my problem is that other
controls don't refresh their data. so if i change the value of a property in
my instance. the control still holds the old value. i tried the following:
this.BindingContext[((MyClass)oMyCollection[1],
"Description"].EndCurrentEdit();
but it wasn't the solution. any ideas?