RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataLink.BufferCount Property

Specifies the number of records cached by the dataset for the Owner of the TDataLink object.

Pascal
property BufferCount: Integer;
C++
__property int BufferCount;

Set BufferCount to tell the dataset how many records to buffer together to service the owner of the TDataLink object. For example, a data-aware grid sets BufferCount to the number of rows visible in the grid. 

Read BufferCount to iterate through all the records buffered by the dataset. For example, a data-aware object can paint itself by cycling through the set of records, moving the ActiveRecord to visit each record in turn.

Note: Unidirectional datasets do not buffer records. Do not use BufferCount when the datalink is associated with a unidirectional dataset.
 

 

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