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

TDBGridOption

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

Declaration

Source position: dbgrids.pas line 52

type TDBGridOption = (

  dgEditing,

  

Indicates cells in the grid can be edited.

  dgTitles,

  

Indicates titles are displayed in fixed row headers for columns on the grid.

  dgIndicator,

  

Enables drawing a row indicator in the fixed header for the currently selected row on the grid.

  dgColumnResize,

  

Indicates columns in the grid can be resized.

  dgColumnMove,

  

Indicates the order of columns in the grid can be changed.

  dgColLines,

  

Indicates vertical lines are drawn between columns in the grid.

  dgRowLines,

  

Indicates horizontal lines are drawn between rows in the grid.

  dgTabs,

  

Indicates the Tab key can be used to navigate between cells in the grid.

  dgAlwaysShowEditor,

  

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

  dgRowSelect,

  

Indicates the entire row is highlighted when column(s) are selected.

  dgAlwaysShowSelection,

  

Indicates the current selection is displayed even when the control loses focus.

  dgConfirmDelete,

  

Indicates a confirmation dialog is displayed when deleting a record in the grid.

  dgCancelOnExit,

  

Indicates an active editing operation is cancelled when the control loses focus.

  dgMultiselect,

  

Allows more than one cell in a row, or more than one row to be selected on the grid.

  dgHeaderHotTracking,

  

Indicates column headers are highlighted when the column has mouse focus (hovered).

  dgHeaderPushedLook,

  

Indicates a column header can be drawn with a "button down" or pushed appearance when clicked.

  dgPersistentMultiSelect,

  

Indicates multiple selections are retained (when enabled) when the control loses focus. When omitted, multi-selections are discarded when the exiting the control.

  dgAutoSizeColumns,

  

Indicates columns are automatically resized to fit their content.

  dgAnyButtonCanSelect,

  

Indicates that any mouse button can change the selection in the grid.

  dgDisableDelete,

  

Indicates that deleting records with Ctrl+Delete is disabled.

  dgDisableInsert,

  

Indicates whether inserting (and appending) records is disabled.

  dgCellHints,

  

Indicates if displaying a hint for an individual cell is enabled.

  dgTruncCellHints,

  

Indicates if cell hints are truncated when they are too long.

  dgCellEllipsis,

  

Indicates if an Ellipsis character is added to the end of cells longer than the display area for the cell.

  dgRowHighlight,

  

Indicates if the current row in the grid is highlighted instead of the current cell.

  dgThumbTracking,

  

Indicates if the current selection is changed when the mouse thumb wheel is scrolled.

  dgDblClickAutoSize,

  

Indicates if double clicking on borders or headers for a column causes it to be automatically resized to its contents.

  dgDisplayMemoText

  

Causes the content in a memo field to be displayed instead of the '(Memo)' string literal. Applies to fields using the ftMemo data type.

);

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

TDBGridOptions

  

Stores values from the TDbGridOption enumeration.

TDBGrid.Options

  

Contains the optional features or behaviors that are enabled for the grid control.


Version 3.2 Generated 2024-02-25 Home