Other features and events of the component

AdminAbout 2 min

Other features and events of the component

property TDBGridEh.Options: TDBGridOption;

The property has a set of type and can contain the following values.

dgEditing

The grid is allowed to open the text editor by Enter or F2 key.

dgAlwaysShowEditor

Always display the text editor of the cell during the moving from cell to line.

dgTitles

Show title row.

dgIndicator

Show Indicator column.

dgColumnResize

Allow resize and move columns.

dgColLines

Draw vertical dividing lines.

dgRowLines

Draw horizontal dividing lines.

dgRowSelect

Select the entire row of the grid instead of a single cell.

dgAlwaysShowSelection

Always draw a selection on the grid. When the grid does not have the input focus, the area will be displayed in gray color.

dgConfirmDelete

Show confirmation window before removing the record on Ctrl + Delete.

dgCancelOnExit

Cancel “Edit Mode” using DataSet.Cancel if DataSet was set in append mode, but user did not do any changes to the row.

dgMultiSelect

Allow select areas in the grid. For more information, see. In the Multiselect section.


property OptionsEh: TDBGridEhOption
The property has a set of type and can contain the following values:

dghFixed3D

Draw a border around the 3D cells fixed grid area.

dghFrozen3D

Draw a border around the 3D cells frozen area.

dghFooter3D

Draw a border around the 3D cells footer.

dghData3D

Draw 3D border around the cells containing the data records DataSet.

dghResizeWholeRightPart

In the AutoFitColWidths.

dghHighlightFocus

Highlight the current cell by color or thems style.

dghClearSelection

Clear selection mode MultiSelect when the Grid moves from cell to cell using the keyboard.

dghFitRowHeightToText

When RowSizingAllowed = True, determines a change row heights to customize the height of the mouse so that they always get the exact number of lines of text without clipping.

dghAutoSortMarking

Change markers of sorting by clicking on the title which TitleButton = True.

dghMultiSortMarking

Allows set markers sorting multiple columns at once, to set markers sorting Run-Time, the user must press and hold down the Ctrl key.

dghEnterAsTab

Enter key behaves key Tab, that is, calls go to the next cell.

dghTraceColSizing

When dghColumnResize value is set then this value determines that it is necessary to change the size of the column with the mouse while moving the mouse. If the data value is not set, the size of the column will change after you release the mouse button.

dghIncSearch

Allowed transition incremental search mode by Ctrl + F button

dghPreferIncSearch

If set dghIncSearch, the installation of this value determines the need vlyuchaet incremental search mode immediately by pressing any letter key numeric keypad. If this value is not set, the switch-over to incremental search only after pressing a combination of Ctrl + F.

dghRowHighlight

Highlight the entire row of the grid. Unlike RowSelect, mode RowHighlight notion of the current cell remains.

dghDblClickOptimizeColWidth

Optimize column width so that the column until all text cell by double-clicking on the vertical dividing line header.

dghDialogFind

Allow search in the search grid through dialogue. Search dialog is opened by pressing the Ctrl + F.

dghRecordMoving

Allow moving records by mouse.

dghShowRecNo

Show record number in the column indicator.

dghColumnResize

Allow the mouse to resize the column.

dghColumnMove

Allow the mouse to move the columns.

dghAutoFitRowHeight

Adjust the height of the row so that each cell until all text.

dghHotTrack

Highlight the cell on which the mouse cursor.

dghExtendVertLines

Is extended until the end of the vertical lines of the grid down.


function TDBGridEh.DataRowCount: Integer; Returns the number of rows of data excluding the header lines and footers.

Last update:
Contributors: dmitrybv