DataGrid REALbasic Plugin |

# DataGridSelection Class

DataGridSelection class allows to read and manipulate DataGrid selection.
Notes:
This class may never be manually constructed.
A Instance of this class can be obtained from the Selection property of the DataGrid.

Object
DataGridSelection

class DataGridSelection

#### Properties

FirstSelectedColumn | Returns the first selected column.
FirstSelectedRow | Get the number of the first selected row.
LastSelectedColumn | If AreaSelection is enabled then this property will return the number of the last selected column.
LastSelectedRow | If AreaSelection is enabled then this property returns the number of the last selected row.
RowCount | Returns the count of selected rows.

#### Methods

AddRows | Adds rows to the selection when in Full Row and multiselection mode.
Clear | Clears the selection.
RemoveRows | Removes rows from the selection when in Full Row and multiselection mode.
RowIsSelected | Returns true if the row by the given index is selected.
SelectedRow | Returns the index of a row in the Grid from the index of the row in the selection. This function together with the RowCount function should be used to iterate through selected rows when in Full Row Multiselection mode.
Set | Selects a cell (or row).
Set | Selects range of cells (or rows) in a MultiSelection DataGrid.

#### Supported Platforms:

- PPC - MacOS 9
- Carbon - MacOS 9 and MacOS X (PEF)
- MacOS X PPC - (Mach-O)
- MacOS X Universal Binary (Mach-O)
- Win32 - Windows
- Linux x86