Unit 'Grids' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TCustomGrid.GetDefaultColumnWidth

Gets the default width used for the specified column.

Declaration

Source position: grids.pas line 1073

protected function TCustomGrid.GetDefaultColumnWidth(

  Column: Integer

):Integer; virtual;

Description

GetDefaultColumnWidth is an Integer function which provides the default width used for the specified Column in the grid control. GetDefaultColumnWidth is used in the GetColumnWidth method when Columns have not been enabled for the control. It returns the value stored in the DefaultColWidth property.

Use the indexed ColWidths property to set the width for an individual column when the Columns collection has not been enabled. Or, use Columns collection to maintain the column definitions including their width.