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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top