Vcl.Grids.TGridOption

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TGridOption = (goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine,
goRangeSelect, goDrawFocusSelected, goRowSizing, goColSizing, goRowMoving,
goColMoving, goEditing, goTabs, goRowSelect, goAlwaysShowEditor,
goThumbTracking, goFixedColClick, goFixedRowClick, goFixedHotTrack,
goFixedColDefAlign, goFixedRowDefAlign);

C++

enum DECLSPEC_DENUM TGridOption : unsigned char { goFixedVertLine, goFixedHorzLine, goVertLine, goHorzLine, goRangeSelect, goDrawFocusSelected, goRowSizing, goColSizing, goRowMoving, goColMoving, goEditing, goTabs, goRowSelect, goAlwaysShowEditor, goThumbTracking, goFixedColClick, goFixedRowClick, goFixedHotTrack, goFixedColDefAlign, goFixedRowDefAlign };

Properties

Type Visibility Source Unit Parent
enum public
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids Vcl.Grids

Description

Enumerates the options used to customize the appearance and behavior of a grid control.

TGridOption is an enumeration type that can be used to customize the appearance and the behavior of a grid control. The following table lists the possible TGridOption values.



Value Meaning

goFixedVertLine

Vertical lines are drawn to separate the fixed (nonscrolling) columns in the grid.

goFixedHorzLine

Horizontal lines are drawn to separate the fixed (nonscrolling) rows in the grid.

goVertLine

Vertical lines are drawn to separate the scrollable columns in the grid.

goHorzLine

Horizontal lines are drawn to separate the scrollable rows in the grid.

goRangeSelect

Users can select ranges of cells at one time. goRangeSelect is ignored if Options includes goEditing.

goDrawFocusSelected

Cells with input focus are drawn with a special highlight color, just like selected cells without input focus. If goDrawFocusSelected is not included, the cell with input focus is distinguished by a focus rectangle, not by a special background color.

goRowSizing

Scrollable rows can be individually resized.

goColSizing

Scrollable columns can be individually resized.

goRowMoving

Scrollable rows can be moved using the mouse.

goColMoving

Scrollable columns can be moved using the mouse.

goEditing

Users can edit the contents of cells. When goEditing is included in Options, goRangeSelect has no effect.

goTabs

Users can navigate through the cells in the grid using TAB and SHIFT+TAB.

goRowSelect

Entire rows are selected rather than individual cells. If goRowSelect is included in Options, goAlwaysShowEditor has no effect.

goAlwaysShowEditor

The grid is locked into edit mode. The user does not need to press ENTER or F2 to turn on EditorMode. If Options does not include goEditing, goAlwaysShowEditor has no effect. If Options includes goRowSelect, goAlwaysShowEditor has no effect.

goThumbTracking

The grid image updates while the user is dragging the thumb of the scroll bar. If goThumbTracking is not included, the image does not update until the user releases the thumb in a new position.

goFixedColClick

The grid supports clicking fixed columns. goFixedColClick is useful when you have fixed columns in the grid control.

goFixedRowClick

The grid supports clicking fixed rows. goFixedRowClick is useful when you have fixed rows in the grid control.

goFixedHotTrack

The grid support hot-tracking of fixed columns or rows. goFixedHotTrack instructs the grid to highlight the fixed cells whenever the mouse passes over them.



See Also