Using Common Data Control Features

From RAD Studio
Jump to: navigation, search

Go Up to Using data controls Index


The following tasks are common to most data controls:

Data controls let you display and edit fields of data associated with the current record in a dataset. The following table summarizes the data controls that appear on the Data Controls category of the Tool palette.

Data controls :

Data control Description

Vcl.DBGrids.TDBGrid

Displays information from a data source in a tabular format. Columns in the grid correspond to columns in the underlying table or dataset of the query. Rows in the grid correspond to records.

Vcl.DBCtrls.TDBNavigator

Navigates through data records in a dataset. updating records, posting records, deleting records, canceling edits to records, and refreshing data display.

Vcl.DBCtrls.TDBText

Displays data from a field as a label.

Vcl.DBCtrls.TDBEdit

Displays data from a field in an edit box.

Vcl.DBCtrls.TDBMemo

Displays data from a memo or BLOB field in a scrollable, multi-line edit box.

Vcl.DBCtrls.TDBImage

Displays graphics from a data field in a graphics box.

Vcl.DBCtrls.TDBListBox

Displays a list of items from which to update a field in the current data record.

Vcl.DBCtrls.TDBComboBox

Displays a list of items from which to update a field, and also permits direct text entry like a standard data-aware edit box.

Vcl.DBCtrls.TDBCheckBox

Displays a check box that indicates the value of a Boolean field.

Vcl.DBCtrls.TDBRadioGroup

Displays a set of mutually exclusive options for a field.

Vcl.DBCtrls.TDBLookupListBox

Displays a list of items looked up from another dataset based on the value of a field.

Vcl.DBCtrls.TDBLookupComboBox

Displays a list of items looked up from another dataset based on the value of a field, and also permits direct text entry like a standard data-aware edit box.

Vcl.DBCGrids.TDBCtrlGrid

Displays a configurable, repeating set of data-aware controls within a grid.

Vcl.DBCtrls.TDBRichEdit

Displays formatted data from a field in an edit box.



Data controls are data-aware at design time. When you associate the data control with an active dataset while building an application, you can immediately see live data in the control. You can use the Fields editor to scroll through a dataset at design time to verify that your application displays data correctly without having to compile and run the application. For more information about the Fields editor, see Creating Persistent Fields.

At runtime, data controls display data and, if your application, the control, and the dataset all permit it, a user can edit data through the control.

See Also