ComponentOne True DataControl 8.0
LinkedField Property

Specifies the field within a linked control to which this field is linked.

Syntax

Field.LinkedField = string

Remarks

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

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

The field is considered linked to the linked control’s field as defined by the LinkedField property. This effectively means that the field from the dependent control appears in the master control’s Recordset. The LinkedField property specifies the name of a field in the dependent (linked) TData control.

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