B4J Question Listview question

Jorge M A

Active Member
Licensed User
From Documentation of ListView:

SetSelection (Position As Int)
Sets the currently selected item. Calling this method will make this item visible.
If the user is interacting with the list with the keyboard or the wheel button the item will also be visibly selected.
Example:ListView1.SetSelection(10)
ListView also has a method:

ScrollTo
Description
Scrolls the list to the specified index.
Syntax
ScrollTo(Index As int) As void
You need to know the last index.
 
Top