Data.DB.TDataSet.BlockReadSize
| [–] Properties | |
|---|---|
| Type: property | |
| Visibility: public | |
| Source: Data.DB.pas Data.DB.hpp
| |
| Unit: Data.DB | |
| Parent: TDataSet | |
Delphi
property BlockReadSize: Integer read FBlockReadSize write SetBlockReadSize;
C++
__property int BlockReadSize = {read=FBlockReadSize, write=SetBlockReadSize, nodefault};
Description
Determines how many record buffers are read in each block.
Setting BlockReadSize to a value greater than 0 puts the dataset in the dsBlockRead state. It remains in that state until you set BlockReadSize to 0 or change the dataset's state in some other manner (such as putting it in edit mode).
For all TDataSet descendants, data-aware controls are not updated and data events are not triggered when the dataset is in the dsBlockRead state. Thus, you can set BlockReadSize to a positive value to scan through the entire dataset quickly without updating data-aware controls.