ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
spark.components.gridClasses 

GridSelectionMode  - AS3 Flex

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> 
  

Related API Elements



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
Public Methods
 MethodDefined By
  
Constructor.
GridSelectionMode
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
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_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.