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

TCustomDBGrid.UpdateGridCounts

Gets the total number of visible columns (or fields) in the grid.

Declaration

Source position: dbgrids.pas line 512

protected function TCustomDBGrid.UpdateGridCounts: Integer;

Description

UpdateGridCounts is an Integer function which gets the total number of visible columns (or fields) in the grid control.

UpdateGridCounts calls GetColumnCount to get the number of entries in the Columns collection. When Columns have been defined, and DataLink is Active, the RecCount and RowCount variables are updated. The UpdateGridColumnSizes method is used to adjust the sizes for the columns. If the linked dataset is Active, and a Row is Selected, the AdjustEditorBounds method is called.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.