Data binding problem

  • Thread starter Thread starter Gabriel
  • Start date Start date
G

Gabriel

Hello,

I'd like to make something easy, in theory.

In C#, I have a database, and some textbox, I'd like to bind theses textbox,
that's that work.

But I'd like update the change (update database) and I push on a button, I
tried the Update of the DataAdapter but that's not work.

Could you help me?

A full sample is welcome.

Thanks,
 
Hello,

If the focus is in the text box when you click the "Update" button with the
mouse, chances are that the textbox doesn't lose the focus and therefore,
does not notifies the bound data source that the data have been changed. If
this is the case, you should programmatically remove the focus from the text
box before calling DataAdapter.Update();
 
If the focus is in the text box when you click the "Update" button with
the
mouse, chances are that the textbox doesn't lose the focus and therefore,
does not notifies the bound data source that the data have been changed.
If this is the case, you should programmatically remove the focus from the
text box before calling DataAdapter.Update();

Hello,

Sorry I tried but that's not work. Do you have a full sample ?

Thanks,
 
Sorry to hear that. I don't have a sample, but could you please post your
code instead so I can look into it and probably suggest what's wrong?
 
Back
Top