Packagespark.components.gridClasses
Classpublic final class GridSelectionMode
InheritanceGridSelectionMode Inheritance 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
 MethodDefined By
  
Constructor.
GridSelectionMode
Public Constants
 ConstantDefined 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_CELLSConstant
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_ROWSConstant 
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.

NONEConstant 
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_CELLConstant 
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_ROWConstant 
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.