[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 for columns in the grid.

  dgIndicator,

  

Enables drawing of the row indicator for the currently selected row in 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.

  dgRowSelect,

  

Indicates the entire row is highlighted when selected.

  dgAlwaysShowSelection,

  

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

  dgConfirmDelete,

  

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

  dgCancelOnExit,

  

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

  dgMultiselect,

  

Indicates more than one cell or row can be selected in the grid.

  dgHeaderHotTracking,

  

Indicates column headers are highlighted when the column has mouse focus.

  dgHeaderPushedLook,

  

Indicates column headers are drawn with a button down appearance.

  dgPersistentMultiSelect,

  

Indicates multiple selections are retained even when the control loses focus.

  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 if deleting records with is disabled.

  dgDisableInsert,

  

Indicates if inserting (or 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

  

Indicates if memo content is displayed instead of the '(Memo)' string literal for ftMemo Fields.

);

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

  

Enables or disables optional features or behaviors in the grid control.