WebListBox.SelectionChanged

From Xojo Documentation

Event


WebListBox.SelectionChanged()

New in 2010r4

Supported for all project types and targets.

The selection of rows has changed. This is the equivalent of the desktop ListBox.Change event.

Notes

SelectionChanged is called in the following situations:

  • When the WebListbox is clicked to give it the focus
  • When an empty row in the WebListBox is clicked
  • When a cell is clicked even if it already is selected
  • When a row is clicked to change the selection

Clicking on a header does not call the SelectionChanged event.

Example

Display data from the selected row in a TextField so it can be edited:

If Me.ListIndex >= 0 Then
Var lastName As String
lastName = Me.List(Me.ListIndex) // Gets the first column

LastNameField.Text = lastName
End If

See Also

ListBox