SelectedRow Property (JTable)

Class

JTable.

Action

Gets the index of the selected row, -1 (4Test: 0) is returned if no row is selected. The value is zero-based.

If multiple row selection is allowed, returns the index of the first selected row.

Syntax

'Declaration
Protected Read Property SelectedRow As Integer

Access

Read only.

Examples

Dim selectedRow As Integer = table.SelectedRow