Table View Property: Selection 

Purpose

The Selection property returns or sets the current selection.

Description

The current selection is an object representing either a single cell or a range of cells. The SAP Table View control allows only one selected range. In either case, the selected object has properties and methods of its own:

Property

Type

Description

<default property>

String

Sets or returns the selection.

UpperBound

Long

Set or returns the uppermost selected row

LowerBound

Long

Set or returns the lowermost selected row

LeftBound

Long

Set or returns the leftmost selected column

RightBound

Long

Set or returns the rightmost selected column

 

Use the <default property> for the selected object to determine what part of the table was selected. The default property returns a string value that uses a special notation to specify the selection:

The following method is also available with the selected object:

Method

Parameter

Description

Set

Long Lower

Long Left

Long Upper

Long Right

Sets the current selection.

When you want to set all selection boundaries at once, the Set method is more efficient than making four calls to the boundary properties.