Official Content

Read-only property for getting the index of the selected item in the Grid. When there is no selected item or the Grid admits multiple selections it will return 0 (empty value).

Warning: If this property is read in the ClientStart event after executing the Select method, it will return the empty value (i.e. 0) because the Grid's content will not be loaded until after the execution of the Load event..

Syntax

<index> = Grid.SelectedItem

Where:

Grid
    Is the Grid control name.

<index> 
    Is a Numeric expression (variable or attribute).

Scope

Controls: Grid control
Generators: AppleAndroid

Run-time/Design-time

This property applies only at design-time.

Availability

This property is available as of GeneXus 15 Upgrade 6 for iOS and GeneXus 15 Upgrade 7 for Android..

See also



Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant