RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSource.Enabled Property

Determines if the data-aware controls associated with the data source component display data.

Pascal
property Enabled: Boolean;
C++
__property Boolean Enabled;

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.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!