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

FirstSelectedColumnReturns the first selected column.
FirstSelectedRowGet the number of the first selected row.
LastSelectedColumnIf AreaSelection is enabled then this property will return the number of the last selected column.
LastSelectedRowIf AreaSelection is enabled then this property returns the number of the last selected row.
RowCountReturns the count of selected rows.

Methods

AddRowsAdds rows to the selection when in Full Row and multiselection mode.
ClearClears the selection.
RemoveRowsRemoves rows from the selection when in Full Row and multiselection mode.
RowIsSelectedReturns true if the row by the given index is selected.
SelectedRowReturns 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.
SetSelects a cell (or row).
SetSelects 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