BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Refreshing master-detail sets

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO)
View previous topic :: View next topic  
Author Message
Nigel
Guest





PostPosted: Wed Feb 16, 2005 11:33 am    Post subject: Re: Refreshing master-detail sets Reply with quote



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 (AT) magicnet (DOT) mn> wrote

Quote:
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?




Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.