Data.DB.TDataSource.Enabled
[–] Properties | |
---|---|
Type: property | |
Visibility: published | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TDataSource |
Delphi
property Enabled: Boolean read FEnabled write SetEnabled default True;
C++
__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
Description
Determines if the data-aware controls associated with the data source component display data.
Use Enabled to control whether data-aware controls connected to a data source display data. If Enabled is true (the default), data are displayed. If Enabled is false, all controls associated with the data source are blank.
Note: While an application can set Enabled to false to blank out data-aware controls during processing of multiple records, a better choice is to use the TDataSet EnableControls and DisableControls methods. Using these methods prevents the controls from blanking out during processing.