A
Alan Baljeu
comboBox1.DataSource = choices;
Binding MTBinding = new TypedBinding("Text", source, member);
comboBox1.DataBindings.Clear();
comboBox1.DataBindings.Add(MTBinding);
a) When I do the above, the comboBox1 will receive updates if "source.member" changes.
But if I change the Text (by typing), the object doesn't update (Binding.OnParse never
fires).
b) If I drop the first line, the binding works fine.
c) If I create a new property, everything works:
public string Froggy
{
get { return comboBox1.Text; }
set { comboBox1.Text = value; }
}
....
Binding MTBinding = new TypedBinding("Froggy", ....
d) What's wrong with the original as it is?
Alan
Binding MTBinding = new TypedBinding("Text", source, member);
comboBox1.DataBindings.Clear();
comboBox1.DataBindings.Add(MTBinding);
a) When I do the above, the comboBox1 will receive updates if "source.member" changes.
But if I change the Text (by typing), the object doesn't update (Binding.OnParse never
fires).
b) If I drop the first line, the binding works fine.
c) If I create a new property, everything works:
public string Froggy
{
get { return comboBox1.Text; }
set { comboBox1.Text = value; }
}
....
Binding MTBinding = new TypedBinding("Froggy", ....
d) What's wrong with the original as it is?
Alan