Sign in Join
FPDoc Onlineexperiment

TCustomDBGrid.GetBufferCount function

Member of TCustomDBGridprotectedIn unit DBGrids

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

Declaration

pascal
function 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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.