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,

Re: Data binding problem by Dmytro

Dmytro
Fri May 12 01:27:33 CDT 2006

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();

"Gabriel" <ml@cista.be> wrote in message
news:%23NG7afSdGHA.4720@TK2MSFTNGP03.phx.gbl...
> 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,
>
>
>
>
>


Re: Data binding problem by Gabriel

Gabriel
Fri May 12 10:24:46 CDT 2006


> 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,



Re: Data binding problem by Dmytro

Dmytro
Mon May 15 05:26:29 CDT 2006

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?

"Gabriel" <ml@cista.be> wrote in message
news:%23YF9ygddGHA.1456@TK2MSFTNGP04.phx.gbl...
>
>> 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,
>