Article View: borland.public.cppbuilder.database.ado
Article #956Re: Refreshing master-detail sets
From: Nigel
Date: Wed, 16 Feb 2005 11:33
Date: Wed, 16 Feb 2005 11:33
23 lines
1877 bytes
1877 bytes
Try something like //Requery the detail dataset if the key field is changed in the master dataset TADODetailDataSet->Requery(TExecuteOptions()); Rather than closing and then reopening the dataset. Hope this helps Nigel "Tumurbaatar S." <nospam_tumur@magicnet.mn> wrote in message news:41afe279@newsgroups.borland.com... > To refresh a master TADODataSet, I close and open it. > I thought that a detail set (established thru MasterFields) > automatically closes and re-opens following the master one. > So its content also refreshes. But this does not happen. > After making changes in both master and detail tables, I re-opened > the master set, but did not touch the detail set. And the detail's > content showed in a db grid remains unchanged. > So I should manually reopen the detail set? And what happens > with the detail set within a period when the master is closed and > re-opened? >
Technical Details
Message-ID:
<42132db8@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41afe279@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,53ece0618ddfa218 X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Nigel" <nhussey@gltame.com> Newsgroups: borland.public.cppbuilder.database.ado References: <41afe279@newsgroups.borland.com> Subject: Re: Refreshing master-detail sets Date: Wed, 16 Feb 2005 13:33:05 +0200 Lines: 25 Organization: Grinaker - LTA X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 196.38.60.194 Message-ID: <42132db8@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108553144 196.38.60.194 (16 Feb 2005 03:25:44 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail