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

TCustomGrid.ClearCols

Clears the values in the FixedCols and Cols properties.

Declaration

Source position: grids.pas line 1339

public function TCustomGrid.ClearCols: Boolean;

Function result

True if the vales are successfully cleared in the method.

Description

ClearCols is a Boolean function used to reset values stored in the FixedCols and Cols properties. No actions are performed in the method when the Cols property is empty (Count=0). In this case, the return value is False.

ClearCols ensures that values in EditorMode, ColCount, and FixedCols are reset. For ColCount, this means the length of the internal Integer list is set to 0. The top, left column offset for the visible area in the control is also reset in GCache.

ClearCols is called from the Clear method prior to updating other visuals aspects for the control.

See also

TCustomGrid.ColCount

  

Number of columns in the grid.

TCustomGrid.FixedCols

  

The number of fixed columns in the grid.

TCustomGrid.EditorMode

  

True when the Editor is ready to modify the value for the current cell.

TCustomGrid.Clear

  

Clears all cells in the grid control.


Version 3.2 Generated 2024-02-25 Home