ComponentOne True DataControl 8.0
LinkedControl Property

Specifies the linked control to whose field the field is linked.

Syntax

Field.LinkedControl = string

Remarks

Read/Write at design time and at run time. Property applies to Field object.

This property works together with the LinkedField property. It is only relevant for linked fields (FieldKind = 2 – Linked).

It specifies the name of a TData control that is linked to another TData control via a common linked field.

Example: Suppose the TDataCustomers control is linked to the TDataOrders control. The TDataOrders control has a field CustomerName, which represents the TDataCustomers.CustomerName field. Then TDataOrders.CustomerName is a linked field, and it is linked to TDataCustomers.CustomerName. This is specified by the LinkedControl and LinkedField properties in the following way:

TDataOrders.Fields(“CustomerName”).FieldKind = tdbLinkedField

TDataOrders.Fields(“CustomerName”).LinkedControl = “TDataCustomers”

TDataOrders.Fields(“CustomerName”).LinkedField = “CustomerName”

For more information, see One-to-One Links.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback