🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.winforms.controls.using
Article #1

Re: Changes in datagrid don't 'take' in underlying database table

#1
From: Marc Rohloff TeamB
Date: Thu, 12 Aug 2004 12:26
16 lines
1396 bytes
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.

-- 
Marc Rohloff [TeamB]
marc rohloff at myrealbox dot com
Technical Details
Message-ID: <xahhn0o98zul$.dlg@marcrohloff.40tude.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <411b1ae3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff3c,21ffa5f31f0b723a
X-Google-Attributes: gid1eff3c,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Marc Rohloff [TeamB]" <"on request">
Subject: Re: Changes in datagrid don't 'take' in underlying database table
Newsgroups: borland.public.csharpbuilder.winforms.controls.using
User-Agent: 40tude_Dialog/2.0.12.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
References: <411b1ae3$1@newsgroups.borland.com>
Date: Thu, 12 Aug 2004 08:26:31 -0400
Message-ID: <xahhn0o98zul$.dlg@marcrohloff.40tude.net>
NNTP-Posting-Host: 4.131.35.78
X-Trace: newsgroups.borland.com 1092313563 4.131.35.78 (12 Aug 2004 05:26:03 -0700)
Lines: 16
X-Authenticated-User: mrohloff
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail