DataGrid.getSelectedRows

Overview | Methods | Fields | This Package | All Packages

DataGrid.getSelectedRows

Retrieves the bookmarks associated with the selected rows in the grid.

Syntax

public Object[] getSelectedRows()

Return Value

Returns an array of the bookmarks associated with the currently selected rows. If no rows are selected, an empty array is returned.

Remarks

Call getSelectedRows to retrieve the rows selected by the user. The user selects a row by clicking its row selector. The CTRL key can be used to select multiple rows at a time.

Note   If the DataGrid control's rowSelectors property is set to false, the rows selectors are not displayed and the user cannot select rows.

The DataGrid control does not allow both rows and columns to be selected at the same time. If columns are selected, call getSelectedColumns to determine the selected columns.

See Also   setSelectedRows, clearColumns