Textbox Binding Problem

  • Thread starter Thread starter Rob Reagan
  • Start date Start date
R

Rob Reagan

I am binding several textboxes to a datatable. My problem
seems to be that if I edit the contents of a textbox but
the textbox does not lose focus before I try to save
changes, all updates are saved except for the textbox
that still has focus. I assume this is because the
textbox has no way of "knowing" if I'm actually done
making changes until it loses focus.

I have tried calling the endEdit method on each datarow
in my bound datatable, but no luck. Any suggestions?

Rob Reagan
 
The CurrencyManager.endCurrentEdit method did the trick.
I found a snippet of code in the VStudio Docs late last
night and copied and pasted it. I'm not entirely sure why
it works, but it does. Thanks for your help.

Rob Reagan
 
Back
Top