0
Reply

DataBInding question

java_j2ee

java_j2ee

Sep 5 2005 8:57 AM
1.5k

when i binding the property "Text" of TextBox1 on OjbectTest's property "Value", why when i change the property "Value",the property "Text" of the textBox not changeed? thanks

the code same as
/*the bindinged class
public class OjbectTest
{
public ObjectTest()
{}
private string __value;
public string Value
{
get{return __value;}
set{__value = value;}
}
}

/*in a winFrom*/
ObjectTest obj = new ObjectTest();
this.textBox1.DataBindings.Add("Text", obj, "Value");