Show: Delphi C++
Display Preferences

Adding the Data Link

From RAD Studio
Jump to: navigation, search

Go Up to Creating a Data Browsing Control


The connection between a control and a database is handled by a class called a data link. The data link class that connects a control with a single field in a database is TFieldDataLink. There are also data links for entire tables.

A data-aware control owns its data link class. That is, the control has the responsibility for constructing and destroying the data link. For details on management of owned classes, see Creating a Graphic Component.

Establishing a data link as an owned class requires these three steps:

  1. Declaring the Class Field
  2. Declaring the Access Properties
  3. Initializing the Data Link

See Also

Personal tools
RAD Studio 10.2 Tokyo
In other languages
Previous Versions
Assistance