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

TGridOptions

Set type used to store enabled grid options.

Declaration

Source position: grids.pas line 120

type TGridOptions = set of (

  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

TGridOptions is a set type used to store values from the TGridOption enumeration. The features or behaviors in TGridOption are enabled when their enumeration values are included in the set. TGridOptions is the type used for the TCustomGrid.Options property.

See also

TCustomGrid.Options

  

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


Version 3.2 Generated 2024-02-25 Home