Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
GridSelectionMode

Package | spark.components.gridClasses
Class | public final class GridSelectionMode
Inheritance | GridSelectionMode Object

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

The GridSelectionMode class defines the valid constant values for the `selectionMode` property of the Spark DataGrid and Grid controls.

Use the constants in ActionsScript, as the following example shows:

        myDG.selectionMode = GridSelectionMode.MULTIPLE_CELLS;

In MXML, use the String value of the constants, as the following example shows:

        <s:DataGrid id="myGrid" width="350" height="150"
            selectionMode="multipleCells">
            ...
        </s:DataGrid>

See also

spark.components.DataGrid.selectionMode
spark.components.Grid.selectionMode

Public Methods

| Method | Defined By
--- | --- | ---
|  | GridSelectionMode() Constructor. | GridSelectionMode

Public Constants

| Constant | Defined By
--- | --- | ---
|  | MULTIPLE_CELLS : String = multipleCells [static] Specifies that one or more cells can be selected. | GridSelectionMode
|  | MULTIPLE_ROWS : String = multipleRows [static] Specifies that one or more rows can be selected. | GridSelectionMode
|  | NONE : String = none [static] Specifies that no selection is allowed. | GridSelectionMode
|  | SINGLE_CELL : String = singleCell [static] Specifies that one cell can be selected. | GridSelectionMode
|  | SINGLE_ROW : String = singleRow [static] Specifies that one row can be selected. | GridSelectionMode

Constructor Detail

GridSelectionMode | () | Constructor

`public function GridSelectionMode()`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

Constructor.

Constant Detail

MULTIPLE_CELLS | Constant

`public static const MULTIPLE_CELLS:String = multipleCells`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

Specifies that one or more cells can be selected.

MULTIPLE_ROWS | Constant |

`public static const MULTIPLE_ROWS:String = multipleRows`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

Specifies that one or more rows can be selected.

NONE | Constant |

`public static const NONE:String = none`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

Specifies that no selection is allowed.

SINGLE_CELL | Constant |

`public static const SINGLE_CELL:String = singleCell`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

Specifies that one cell can be selected.

SINGLE_ROW | Constant |

`public static const SINGLE_ROW:String = singleRow`

Language Version : | ActionScript 3.0

Product Version : | Flex 4.5

Runtime Versions : | Flash Player 10, AIR 2.5

Specifies that one row can be selected.

Wed Nov 15 2017, 09:50 AM +01:00