Sign in Join
FPDoc Onlineexperiment

TDBGridOption enumeration

In unit DBGrids

Enumerated type containing options available for use in a database grid control.

Declaration

pascal
TDBGridOption = (dgEditing,dgTitles,dgIndicator,dgColumnResize,
 dgColumnMove,dgColLines,dgRowLines,dgTabs,
 dgAlwaysShowEditor,dgRowSelect,dgAlwaysShowSelection,
 dgConfirmDelete,dgCancelOnExit,dgMultiselect,
 dgHeaderHotTracking,dgHeaderPushedLook,
 dgPersistentMultiSelect,dgAutoSizeColumns,
 dgAnyButtonCanSelect,dgDisableDelete,dgDisableInsert,
 dgCellHints,dgTruncCellHints,dgCellEllipsis,
 dgRowHighlight,dgThumbTracking,dgDblClickAutoSize,
 dgDisplayMemoText)

Description

TDBGridOption is an enumerated type containing options available for a database grid control. Each enumeration value indicates if the associated feature or behavior is enabled in a database grid control.

Values from the enumeration are stored in the TDBGridOptions set type, and are used in the TDBGrid.Options property.

See also

Values

dgEditingIndicates cells in the grid can be edited.
dgTitlesIndicates titles are displayed in fixed row headers for columns on the grid.
dgIndicatorEnables drawing a row indicator in the fixed header for the currently selected row on the grid.
dgColumnResizeIndicates columns in the grid can be resized.
dgColumnMoveIndicates the order of columns in the grid can be changed.
dgColLinesIndicates vertical lines are drawn between columns in the grid.
dgRowLinesIndicates horizontal lines are drawn between rows in the grid.
dgTabsIndicates the Tab key can be used to navigate between cells in the grid.
dgAlwaysShowEditorIndicates an edit control is always displayed for the current cell in the grid. When omitted, editing must be initiated by mouse click, or by pressing the Enter or F2 keys.
dgRowSelectIndicates the entire row is highlighted when column(s) are selected.
dgAlwaysShowSelectionIndicates the current selection is displayed even when the control loses focus.
dgConfirmDeleteIndicates a confirmation dialog is displayed when deleting a record in the grid.
dgCancelOnExitIndicates an active editing operation is cancelled when the control loses focus.
dgMultiselectAllows more than one cell in a row, or more than one row to be selected on the grid.
dgHeaderHotTrackingIndicates column headers are highlighted when the column has mouse focus (hovered).
dgHeaderPushedLookIndicates a column header can be drawn with a "button down" or pushed appearance when clicked.
dgPersistentMultiSelectIndicates multiple selections are retained (when enabled) when the control loses focus. When omitted, multi-selections are discarded when the exiting the control.
dgAutoSizeColumnsIndicates columns are automatically resized to fit their content.
dgAnyButtonCanSelectIndicates that any mouse button can change the selection in the grid.
dgDisableDeleteIndicates that deleting records with Ctrl+Delete is disabled.
dgDisableInsertIndicates whether inserting (and appending) records is disabled.
dgCellHintsIndicates if displaying a hint for an individual cell is enabled.
dgTruncCellHintsIndicates if cell hints are truncated when they are too long.
dgCellEllipsisIndicates if an Ellipsis character is added to the end of cells longer than the display area for the cell.
dgRowHighlightIndicates if the current row in the grid is highlighted instead of the current cell.
dgThumbTrackingIndicates if the current selection is changed when the mouse thumb wheel is scrolled.
dgDblClickAutoSizeIndicates if double clicking on borders or headers for a column causes it to be automatically resized to its contents.
dgDisplayMemoTextCauses the content in a memo field to be displayed instead of the '(Memo)' string literal. Applies to fields using the ftMemo data type.

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