[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'DBCtrls' (#lcl)

# TDBRadioGroup.DataSource

Provides access to the linked dataset and the field definition used in the control.

## Declaration

Source position: dbctrls.pp line 614

`published property TDBRadioGroup.DataSource : TDataSource read GetDataSource write SetDataSource;`

## Description

DataSource is a TDataSource property which contains the component used to provide access to the linked dataset and the field used in the data-aware control.

Read and write access to the property value are redirected to the DataSource property in DataLink. Assigning a new value for the property causes the ChangeDataSource routine to be called to perform notification messages and update the DataLink property in the control.

Use the DataField property to get or set the name for the field in the linked dataset where the Value for the control is stored.

## See also

TDBRadioGroup.DataLink |  | Provides access to properties, methods, and events for the data-aware control.
TDBRadioGroup.DataField |  | Name of the Field in the linked dataset where the control Value is stored.
TDBRadioGroup.Value |  | The value for the selected radio button in the control.
TDataLink.DataSource
TDataSource