Gets the total number of visible columns (or fields) in the grid.
Source position: dbgrids.pas line 512
protected function TCustomDBGrid.UpdateGridCounts: Integer; |
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.