Hy,
Another problem with MaskedTextbox control...
THIS-OBJECT:maskedTextBox1:CausesValidation = FALSE.
THIS-OBJECT:maskedTextBox1:DataBindings:Add(NEW System.Windows.Forms.Binding("Text", THIS-OBJECT:bsCustomer, "birthday", TRUE)).
THIS-OBJECT:maskedTextBox1:Mask = "99/99/9999".
I really can't erase data value (birthday)!!!!!!
I try this :
THIS-OBJECT:maskedTextBox1:DataBindings["Text"]:NullValue = "".
THIS-OBJECT:maskedTextBox1:DataBindings["Text"]:WriteValue().
But it still fails...
CausesValidation is FALSE because if user doesn't fill control, the focus isn't release...
I found no solutions, I count on you
You will need to clear the underlying database field then call the binding refresh method.
Hi Joseph,
clear the underlying database field
How can I do this and how this will help me?
When value of maskedtextbox control is empty, I would like it erase value into database.
The bindingsource will automatically put a temp-table record in scope. Clear the temp-table field that is bound to the TextBox then call Refresh of the BindingSource.