TRelation Class
A data relation between two tables. Different from standard .NET datarelations, this class is not tied to ADO.NET, and allows you to specify relationships between any arbitrary VirtualDataTable objects.
Syntax
Unit: FlexCel.Report
TRelation = class(TFlexCelObject);
Constructors
| Name |
Description |
| Create |
Creates a new relation with the given values.
|
Properties
| Name |
Description |
| ParentColumns |
And array of colum indexes on the Master table that are related to the detail ChildColumns[0] is related to ParentColumns[0], ChildColumns[1] to ParentColunns[1], and so on.
|
| ChildColumns |
And array of colum indexes on the Detail table that are related to the master. ChildColumns[0] is related to ParentColumns[0], ChildColumns[1] to ParentColunns[1], and so on.
|
| ParentTable |
Table that acts as a master on a Master-Detail relationship.
|
| ChildTable |
Table that acts as a detail on a Master-Detail relationship.
|