RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataLink.DataSourceFixed Property

Indicates whether the DataSource property can be set.

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

Use DataSourceFixed to determine whether the DataSource property can be changed. By default, DataSourceFixed is false, allowing the DataSource property to be changed.  

When there is a chance that an asynchronous event might change the DataSource before an operation completes, set DataSourceFixed to true before performing the operation to ensure that the DataSource is constant throughout the operation. After the data operation is complete, DataSourceFixed can be set back to false. 

Set DataSourceFixed to prevent the DataSource of a data-aware object that owns the TDataLink from being changed once it is set. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!