Description


Additional component settings.


You can combine the settings using the listed values.


 Value

 Description

 goArrowKeyExitEditing

 Exit cell editing by pressing up, down, left, right buttons

 goCanHideColumn

 The user will be able to hide columns with the mouse.

 goDisableColumnMoving

 Disables the user to move columns with the mouse.

 goDisableKeys

 Disables moving between rows with arrows on the keyboard.

 goEscClearEdit

 When editing a cell, allows you to clear it by pressing Esc.

 goFooter

 Makes the component's footer visible.

 goGrid

 Shows horizontal and vertical lines.

 goHeader

 Shows the headings for the columns.

 goIndicator

 Shows the indicator of the selected row.

 goInput

 Shows the input bar.

 goLockFixedCols

 Disables moving fixed columns with mouse (FixedCols).

 goMultiSelect

 Allows you to select multiple records using the Ctrl or Shift key.

 goRowResizing

 Allows you to change the height of rows with the mouse (goIndicator must also be activated)

 goRowMoving

 Allows you to move rows with the mouse.

 goSecondClickEdit

 Editing a cell with a double click of the mouse.

 goSelectFullRow

 Selects a whole row, otherwise individual cells will be selected.



The default settings are as follows:

goDisableColumnMoving, goGrid, goHeader, goSecondClickEdit, goSelectFullRow




Example


procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
    // disable lines in the component
    Form1.GridSearch.Options := Form1.GridSearch.Options - goGrid;


    // Set the necessary settings for the component
    Form1.GridSearch.Options := goDisableColumnMoving + goGrid + goHeader + goSecondClickEdit + goSelectFullRow + goMultiSelect;
end;