From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

WebListBox.SelectionChanged(Rows() As Integer)

New in 2010r4

Supported for all project types and targets.

The selection of rows has changed.


SelectionChanged is called in the following situations:

  • When the WebListbox is clicked to give it the focus
  • 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.

Sample Code

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

If Me.SelectedRowIndex >= 0 Then
Var lastName As String
lastName = Me.SelectedRowValue // Gets the first column

LastNameField.Value = lastName
End If

See Also

ListBox desktop control.