RightAction
RightAction
Specifies the default mouse action for a right click
Enumerated type, possible values are:
Default | Default behaviour. If applied to a cell, then any non-default style for the row or column or whole grid is used instead. If all these are Default, then the behaviour is the same as Ignore |
---|---|
Ignore | Ignores all button mouse action |
Down | A single click event will be triggered when the mouse button is pushed on a cell. The Down style is useful where the program action is immediate, such as changing the color of a cell or putting the cell into edit mode. Moving the mouse around a grid with the button held down will also generate click events for cells with this style set |
Click | A click event will be triggered when the mouse button is clicked on a cell. A Click style is useful where less immediate action is taken such as bring up another form, as the behaviour is similar to that of a push button |
ClickAndDblClick | A click event will be triggered when the mouse button is clicked on a cell. A click event and then a double click event will be triggered when the mouse button is double clicked on a cell |
This property is used to specify what action is to be taken if the right mouse button is held down, clicked or double clicked on a grid cell. By default if RightAction is set, the mouse action will select an individual cell unless otherwise specified by the RightSelect property, which can be used to allow whole rows or columns to be selected. To set RightAction for an individual row, column or cell you must use this property in conjunction with the Cell() method. For example, the following would set the RightAction for all cells in row 5:
.GridControl1.Cell(5,0).RightAction = &.Click
And to set this property for the whole grid the following would be used:
.GridControl1.RightAction = &.Click