 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Nigel Guest
|
Posted: Wed Feb 16, 2005 11:33 am Post subject: Re: Refreshing master-detail sets |
|
|
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 |
|
 |
|
|
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
|
|