G
Guest
I have a dialog with controls bound to class properties, e.g. :
numericUpDownPort.DataBindings.Add("Value", localOptions, "Port");
textBoxDatabaseName.DataBindings.Add("Text", localOptions, "DatabaseName");
textBoxDataUsername.DataBindings.Add("Text", localOptions, "DataUsername");
- i.e. localOptions (a member of the form) is a instance of a class with
properties DatabaseName, Port etc.
My problem is that when the underlying object is refreshed (user can load
the class from a file), the controls don't update. The object's properties
are now different from the user interface.
How to I force the controls to reload their data from the object?
I thought Push/PullData() might be my new friends but these are protected
methods.
Thanks for the help,
Rua HM.
This is a kindoff-followup to "control data binding not happening when data
entered from app"
http://msdn.microsoft.com/newsgroup...t=en-us-msdn&lang=en&cr=US&sloc=en-us&m=1&p=1
numericUpDownPort.DataBindings.Add("Value", localOptions, "Port");
textBoxDatabaseName.DataBindings.Add("Text", localOptions, "DatabaseName");
textBoxDataUsername.DataBindings.Add("Text", localOptions, "DataUsername");
- i.e. localOptions (a member of the form) is a instance of a class with
properties DatabaseName, Port etc.
My problem is that when the underlying object is refreshed (user can load
the class from a file), the controls don't update. The object's properties
are now different from the user interface.
How to I force the controls to reload their data from the object?
I thought Push/PullData() might be my new friends but these are protected
methods.
Thanks for the help,
Rua HM.
This is a kindoff-followup to "control data binding not happening when data
entered from app"
http://msdn.microsoft.com/newsgroup...t=en-us-msdn&lang=en&cr=US&sloc=en-us&m=1&p=1