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

TGridOption

Represents grid option values available for grid controls.

Declaration

Source position: grids.pas line 86

type TGridOption = (

  goFixedVertLine,

  

Shows vertical lines around fixed cells.

  goFixedHorzLine,

  

Shows horizontal lines around fixed cells.

  goVertLine,

  

Show vertical lines.

  goHorzLine,

  

Show horizontal lines.

  goRangeSelect,

  

Enables range selection for grid cells.

  goDrawFocusSelected,

  

Enables drawing using the SelectedColor for selected cell(s) and FocusColor for the focus rectangle (or rubber band).

  goRowSizing,

  

Allow user to change row height.

  goColSizing,

  

Allow user to change column width.

  goRowMoving,

  

Enables moving the position of an entire row in a grid.

  goColMoving,

  

Enables moving the position of an entire column in a grid.

  goEditing,

  

Allows editing in grid cells.

  goAutoAddRows,

  

Automatically add new rows. Does not add rows if the last cell is empty and goAutoAddRowsSkipContentCheck is not set.

  goTabs,

  

Controls Tab key behavior in the grid. When enabled, the Tab key changes the active cell within the grid. When omitted, the Tab key changes to the next active control.

  goRowSelect,

  

Select the whole row instead of only one cell.

  goAlwaysShowEditor,

  

Always shows the cell editor. If not set, the user has to enter edit mode by data characters for the cell, or by pressing the F2 key.

  goThumbTracking,

  

Enables tracking of the thumb position in grid scroll bars.

  goColSpanning,

  

Enable cell extent calculations.

  goRelaxedRowSelect,

  

User can see focused cell on goRowSelect.

  goDblClickAutoSize,

  

Enables using double click on a column border (on headers) to resize a column.

  goSmoothScroll,

  

Enables smooth scrolling mode. Default is pixel scroll.

  goFixedRowNumbering,

  

Causes row numbers to be displayed in the first column in FixedCols. The displayed row numbers starts with 1. The row number is displayed when no text has been directly assigned to the fixed cell.

  goScrollKeepVisible,

  

Keeps focused cell visible while scrolling.

  goHeaderHotTracking,

  

Header cells change look when mouse is over them.

  goHeaderPushedLook,

  

Header cells looks pushed when clicked.

  goSelectionActive,

  

Setting a grid selection also moves the cell cursor.

  goFixedColSizing,

  

Enables resizing of fixed columns.

  goDontScrollPartCell,

  

When enabled, selecting a partially visible cell will not scroll the grid content.

  goCellHints,

  

Show individual cell hints. Requires the ShowHint property to be set to True. If set, the Hint will be ignored. Instead the OnGetCellHint event will be called for each cell.

  goTruncCellHints,

  

Truncates cell hints when they are longer than the cell content.

  goCellEllipsis,

  

Shows an Ellipsis (...) at the end of truncated cell hints.

  goAutoAddRowsSkipContentCheck,

  

Adds a row if last row is empty. goAutoAddRows must also be set. Otherwise this option does not take effect.

  goRowHighlight

  

Highlights the current Row in a grid control.

);

Description

TGridOption is an enumerated type with values that represent grid options available in LCL grid controls. Values from TGridOption are stored in a TGridOptions set type to indicate that the grid feature or behavior is enabled.

Values from TGridOption are stored in the DefaultGridOptions constant which defines the default set of options for LCL grid controls.

See also

TGridOptions

  

Set type used to store enabled grid options.

TGridOptions2

  

Set type used to store enabled grid options from the TGridOption2 enumeration.

TGridOption2

  

Represents grid options introduced in Version 2 (or higher) of grid controls.

DefaultGridOptions

  

Set with the default grid options enabled for instances of the grid control.

TCustomGrid.Options

  

Contains the set of optional features and/or behaviors enabled for the grid control.

TCustomGrid.Options2

  

Contains additional options for scrolling and editor behavior enabled in the grid control.


Version 3.2 Generated 2024-02-25 Home