From Xojo Documentation

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


New in 2021r3

Supported for all project types and targets.

The SelectionChanged event is called when the row selection is changed by the user or by code.


The SelectionChanged event handler is called when the row selection changes, not when cell contents change.

The SelectionChanged event handler is called in response to the following user actions:

  • When the Listbox is clicked to give it the focus
  • When an empty row in the ListBox is clicked
  • When a cell is clicked even if it already is selected and the column is not editable
  • When a row is clicked to change the selection

If a column is editable, clicking in a cell calls the SelectionChanged event but a second click to get an insertion point does not. Clicking on a header or a checkbox does not call the SelectionChanged event.

Also, changing DesktopListBox.SelectedRowIndex via code also triggers the SelectionChanged event.