From Xojo Documentation
The user has clicked on the disclosure triangle, or the expanded property was set to true programmatically, for a collapsed row that was added using AddFolder. Row is zero-based.
The rows are not persisted when the folder is later collapsed. Use the ExpandRow event handler to re-add rows as necessary.
This code adds children to the expanded row: