E
Erick Gonzales
Hi, i´ve created a user control that contains a TextBox and a Label, lets
call this control CText.
CText has properties like Value and Text, where Text is used to display
formatted Value.
Well, i´m trying to create a new databind using:
cText1.DataBindings.Add("Value", wDataTable ,"TableField1" );
_CM = (CurrencyManager) this.BindingContext[wDataTable ];
_CM.AddNew() ;
Then, when submitting the form (winform), i call
_CM.EndCurrentEdit();
....where it is supposed that the bindingcontext datasource should be
updated..., but this is not working as expected.
-> Tried the same with a TextBox and it works....
-> MSDN : You can simple-bind to any object that derives from the
System.Windows.Forms.Control class...., and UserControl does, so what´s the
problem??
any suggestion?
ErickG
call this control CText.
CText has properties like Value and Text, where Text is used to display
formatted Value.
Well, i´m trying to create a new databind using:
cText1.DataBindings.Add("Value", wDataTable ,"TableField1" );
_CM = (CurrencyManager) this.BindingContext[wDataTable ];
_CM.AddNew() ;
Then, when submitting the form (winform), i call
_CM.EndCurrentEdit();
....where it is supposed that the bindingcontext datasource should be
updated..., but this is not working as expected.
-> Tried the same with a TextBox and it works....
-> MSDN : You can simple-bind to any object that derives from the
System.Windows.Forms.Control class...., and UserControl does, so what´s the
problem??
any suggestion?
ErickG