FMX.Grid.TGridOption
Delphi
TGridOption = (AlternatingRowBackground, Editing, AlwaysShowEditor, ColumnResize, ColumnMove, ColLines, RowLines,
RowSelect, AlwaysShowSelection, Tabs, Header, HeaderClick, CancelEditingByDefault, AutoDisplacement);
C++
enum class DECLSPEC_DENUM TGridOption : unsigned char { AlternatingRowBackground, Editing, AlwaysShowEditor, ColumnResize, ColumnMove, ColLines, RowLines, RowSelect, AlwaysShowSelection, Tabs, Header, HeaderClick, CancelEditingByDefault, AutoDisplacement };
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum | public | FMX.Grid.pas FMX.Grid.hpp |
FMX.Grid | FMX.Grid |
Description
Defines how grid controls look like and how they behave.
TGridOption values are listed in the following table.
Value | Description |
---|---|
AlternatingRowBackground |
Specifies whether the alternate rows of the TGrid control have a background color. Default is |
Editing |
Specifies whether you can edit the contents of the TGrid control. Default is |
AlwaysShowEditor |
Specifies whether a cell of the TGrid control enters the edit mode immediately when selected. Default is |
ColumnResize |
Specifies whether you can resize the columns of the TGrid control. Default is |
ColumnMove |
Specifies whether you can change the order of the columns of the TGrid control. Default is |
ColLines |
Specifies whether the column separator lines of the TGrid control are visible. Default is |
RowLines |
Specifies whether the row separator lines of the TGrid control are visible. Default is |
RowSelect |
Specifies whether a click on a row in the TGrid control selects that row. Default is |
AlwaysShowSelection |
Specifies if an update of the content of the cell also immediately selects that cell. Default is |
Tabs |
Specifies whether you can use the Tab key to cycle through the fields of the TGrid control. Default is |
Header |
Specifies whether the header row of the TGrid control is displayed. Default is |
HeaderClick |
Does not affect anything. Default is |
CancelEditingByDefault |
If it is |
AutoDisplacement |
Makes it easier to edit grid cells on a mobile device with a virtual keyboard. If you are editing a cell that is hidden by the virtual keyboard, it produces an automatic displacement of the grid. Default is |