Re: How to Sinchronize a DataGridView with a database.
From: Val Mazur (group51a_at_hotmail.com)
Date: 10/27/04
- Next message: Val Mazur: "Re: Validating Datagrid Controls"
- Previous message: Roy: "How to repair MDAC in XP SP2?"
- In reply to: Autumn: "How to Sinchronize a DataGridView with a database."
- Next in thread: Autumn: "Re: How to Sinchronize a DataGridView with a database."
- Reply: Autumn: "Re: How to Sinchronize a DataGridView with a database."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 26 Oct 2004 21:44:57 -0400
Hi,
Update method of the DataAdapter should do it for you. If it does not, then
most likely you call AcceptChanges before calling update or you did not
define proper INSERT/UPDATE/DELETE commands for your DataAdapter
--
Val Mazur
Microsoft MVP
"Autumn" <sorrowforsorrow@yahoo.com> wrote in message
news:uxPRxp3uEHA.2624@TK2MSFTNGP11.phx.gbl...
>
> How do i send back the changes to a
> DataGridView connected to a sql database?
>
> What message shoud i send to my xxxTableAdapter or xxxDataConnector?
> I try the following but the content of my database remains unchanged:
>
> this.entriesDatesTableAdapter.Update(this.earth.EntriesDates);
>
> ("earth" is the DataSet created from the database).
>
>
> I should be grateful if You could help me.
>
>
- Next message: Val Mazur: "Re: Validating Datagrid Controls"
- Previous message: Roy: "How to repair MDAC in XP SP2?"
- In reply to: Autumn: "How to Sinchronize a DataGridView with a database."
- Next in thread: Autumn: "Re: How to Sinchronize a DataGridView with a database."
- Reply: Autumn: "Re: How to Sinchronize a DataGridView with a database."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|