Re: Master / detail with TADODataset?
- From: "Dave Blake" <barnswood@xxxxxxxxxxx>
- Date: Tue, 26 Apr 2005 15:01:56 +0100
> is it actually possible to establish master/detail relationships in a
> simple way between 2 TADODatasets? I mean like between 2
> TADOTables. I would like to avoid using TADOTable as long
> as possible, but i haven't the MasterSource property in a
> TADODataset, though i have MasterFields.
>
Yes easily, use Datasource property.
Set the Details.Datasource to a datasource linked to the Master, and the
Details.MasterFields to the name(s) of the Master fields. If Details has
different field names to the Master then set Details.IndexFieldNames to the
matching Details fields.
HTH
Dave
.
- Follow-Ups:
- Re: Master / detail with TADODataset?
- From: Brian Bushay TeamB
- Re: Master / detail with TADODataset?
- From: Guillem
- Re: Master / detail with TADODataset?
- References:
- Master / detail with TADODataset?
- From: Guillem
- Master / detail with TADODataset?
- Prev by Date: Re: Cannot Connect ADOConnection at Run-Time
- Next by Date: Re: Master / detail with TADODataset?
- Previous by thread: Master / detail with TADODataset?
- Next by thread: Re: Master / detail with TADODataset?
- Index(es):
Relevant Pages
|