DataGrid REALbasic Plugin

DataGridSelection.SelectedRow Method

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.

SelectedRow(
   index as Integer) as Integer

Parameters

index
The selection index. (One based)

Returns

Integer
The index of the selected row in the Grid control.

Remarks

If rows 2 7 and 8 are selected in a Grid control then RowCount on the StyleGridSelection class will return 3.

With the same example as above then the following goes for the SelectedRow function:

SelectedRow(1) // Will return 2
SelectedRow(2) // Will return 7
SelectedRow(3) // Will return 8

See Also

DataGridSelection Class