HELP! Textbox is trapped in focus with DataBindings setup

  • Thread starter Thread starter fj
  • Start date Start date
F

fj

I have several textbox I manually setup the DataBindings.

myTextBox.DataBindings.Add("Text", this.MyObject, "myPropertyName",
true);

This myPropertyName is a Nullable datatype. For example
Nullable<decimal>.

When I tab into the textbox and type in anything, I cannot leave the
TextBox without put in valid values. What I want to do is clearing the
text in the textbox and set the underlying object with null value.

Please help.

Thanks

fj
 
Back
Top