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

TGridOption

Represents grip option values available for grid controls.

Declaration

Source position: grids.pas line 83

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 focused drawing for selected cell(s).

  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.

  goTabs,

  

Controls Tab key behavior in the grid.

  goRowSelect,

  

Select the whole row instead of only one cell.

  goAlwaysShowEditor,

  

Always shows the cell editor.

  goThumbTracking,

  

Enables tracking of the thumb position in grid scroll bars.

  goColSpanning,

  

Enable cellextent calculations.

  goRelaxedRowSelect,

  

User can see focused cell on goRowSelect.

  goDblClickAutoSize,

  

Double clicking column's borders (on headers) resize column.

  goSmoothScroll,

  

Switch scrolling mode.

  goFixedRowNumbering,

  

Show row numbers in first fixed column.

  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 grid selection also moves the cell cursor.

  goFixedColSizing,

  

Allow to resize fixed columns.

  goDontScrollPartCell,

  

Selecting a partially visible cell will not scroll the grid content.

  goCellHints,

  

Show individual cell hints.

  goTruncCellHints,

  

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

  goCellEllipsis,

  

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

  goAutoAddRowsSkipContentCheck,

  

Also add a row if last row is empty.

  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 TGridOption2.

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.

TCustomGrid.Options2

  

Contains additional options enabled for the grid control.