Sign in Join
FPDoc Onlineexperiment

TGridOption enumeration

In unit Grids

Represents grid option values available for grid controls.

Declaration

pascal
TGridOption = (goFixedVertLine,goFixedHorzLine,goVertLine,goHorzLine,
 goRangeSelect,goDrawFocusSelected,goRowSizing,
 goColSizing,goRowMoving,goColMoving,goEditing,
 goAutoAddRows,goTabs,goRowSelect,goAlwaysShowEditor,
 goThumbTracking,goColSpanning,goRelaxedRowSelect,
 goDblClickAutoSize,goSmoothScroll,goFixedRowNumbering,
 goScrollKeepVisible,goHeaderHotTracking,
 goHeaderPushedLook,goSelectionActive,goFixedColSizing,
 goDontScrollPartCell,goCellHints,goTruncCellHints,
 goCellEllipsis,goAutoAddRowsSkipContentCheck,
 goRowHighlight)

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

Values

goFixedVertLineShows vertical lines around fixed cells.
goFixedHorzLineShows horizontal lines around fixed cells.
goVertLineShow vertical lines.
goHorzLineShow horizontal lines.
goRangeSelectEnables range selection for grid cells.
goDrawFocusSelectedEnables drawing using the SelectedColor for selected cell(s) and FocusColor for the focus rectangle (or rubber band).
goRowSizingAllow user to change row height.
goColSizingAllow user to change column width.
goRowMovingEnables moving the position of an entire row in a grid.
goColMovingEnables moving the position of an entire column in a grid.
goEditingAllows editing in grid cells.
goAutoAddRowsAutomatically add new rows. Does not add rows if the last cell is empty and goAutoAddRowsSkipContentCheck is not set.
goTabsControls 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.
goRowSelectSelect the whole row instead of only one cell.
goAlwaysShowEditorAlways 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.
goThumbTrackingEnables tracking of the thumb position in grid scroll bars.
goColSpanningEnable cell extent calculations.
goRelaxedRowSelectUser can see focused cell on goRowSelect.
goDblClickAutoSizeEnables using double click on a column border (on headers) to resize a column.
goSmoothScrollEnables smooth scrolling mode. Default is pixel scroll.
goFixedRowNumberingCauses 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.
goScrollKeepVisibleKeeps focused cell visible while scrolling.
goHeaderHotTrackingHeader cells change look when mouse is over them.
goHeaderPushedLookHeader cells looks pushed when clicked.
goSelectionActiveSetting a grid selection also moves the cell cursor.
goFixedColSizingEnables resizing of fixed columns.
goDontScrollPartCellWhen enabled, selecting a partially visible cell will not scroll the grid content.
goCellHintsShow 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.
goTruncCellHintsTruncates cell hints when they are longer than the cell content.
goCellEllipsisShows an Ellipsis (...) at the end of truncated cell hints.
goAutoAddRowsSkipContentCheckAdds a row if last row is empty. goAutoAddRows must also be set. Otherwise this option does not take effect.
goRowHighlightHighlights the current Row in a grid control.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.