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 |
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
Public Methods
Method | Defined By | ||
---|---|---|---|
Constructor. | GridSelectionMode | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
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.
Mon Nov 28 2011, 06:48 AM -08:00