Article View: borland.public.csharpbuilder.winforms.controls.using
Article #2Re: Changes in datagrid don't 'take' in underlying database table
From: John Fowler
Date: Mon, 16 Aug 2004 01:06
Date: Mon, 16 Aug 2004 01:06
21 lines
1645 bytes
1645 bytes
Thanks. That fixed it.
John F.
Marc Rohloff [TeamB] wrote:
> On Thu, 12 Aug 2004 00:23:19 -0700, John Fowler wrote:
>
>
>>private void saveNewBtn_Click(object sender, System.EventArgs e)
>>{
>> patientsTable.AcceptChanges();
>> patientsDataAdapter.Update( patientsTable);
>>}
>
>
>>Please explain what I'm missing and how to fix it.
>
> AcceptChanges basically makes the table think that all the changes
> have already been saved to the database. You need to swap the order of
> the two statements.
>
Technical Details
Message-ID:
<4120087b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<411b1ae3$1@newsgroups.borland.com> <xahhn0o98zul$.dlg@marcrohloff.40tude.net>Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff3c,21ffa5f31f0b723a X-Google-Attributes: gid1eff3c,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 15 Aug 2004 18:06:10 -0700 From: John Fowler <jfowler@pol.net> Reply-To: jfowler@pol.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.csharpbuilder.winforms.controls.using Subject: Re: Changes in datagrid don't 'take' in underlying database table References: <411b1ae3$1@newsgroups.borland.com> <xahhn0o98zul$.dlg@marcrohloff.40tude.net> In-Reply-To: <xahhn0o98zul$.dlg@marcrohloff.40tude.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.20.189.226 Message-ID: <4120087b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1092618363 24.20.189.226 (15 Aug 2004 18:06:03 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail