[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBGrids' (#lcl)

TCustomDBGrid.GetBufferCount

Gets the number of rows to buffer in the grid control.

Declaration

Source position: dbgrids.pas line 463

protected function TCustomDBGrid.GetBufferCount: Integer; virtual;

Function result

Number of data rows visible in the grid control.

Description

GetBufferCount is a virtual Integer function used to get the number of rows to buffer for display in the grid control. The return value contains the number of rows that can be displayed using the DefaultRowHeight for the control. The return value is decreased by 1 when column titles are enabled in the Options property with the dgTitles enumeration value.

GetBufferCount is called from the UpdateBufferCount method.


Version 3.2 Generated 2024-02-25 Home