Data.DB.TDataLink.BufferCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property BufferCount: Integer read FBufferCount write SetBufferCount;

C++

__property int BufferCount = {read=FBufferCount, write=SetBufferCount, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TDataLink

Description

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

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.

See Also