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

TCustomGrid.ClearRows

Clears the cached fixed rows and row count values for the grid control.

Declaration

Source position: grids.pas line 1340

public function TCustomGrid.ClearRows: Boolean;

Function result

True if the rows are cleared in the method.

Description

ClearRows is a Boolean function used to remove all rows in the grid control. This includes the fixed row for the control. The return value is True if rows are successfully cleared in the method. It is False if the grid is already empty.

ClearRows sets EditorMode to False if a cell editor is visible on the grid control. It sets values in the FixedRows and and RowCount properties to 0 (zero).

It does not change values in the FixedCols or ColCount properties.

See also

TCustomGrid.RowCount

  

Number of rows in the grid.

TCustomGrid.ColCount

  

Number of columns in the grid.

TCustomGrid.FixedRows

  

Number of the fixed rows 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