ListBox Class selectRow( ) function

Hello, its my first time posting on the JUCE forum and I have a question regarding the selectRow( ) function in the listbox class.

I have a TableListBox component and i have built a search function to return me song titles based on the search query. The function has a paramter called bool deselectOthersFirst.

To my understanding, by setting it as false, it should highlight more than 1 matching song title should there be more than 1 result returned. However, it doesn’t seem to be highlighting more than 1 row in the table. Is there something i am missing?

Probably you have to allow multiple selection first: setMultipleSelectionEnabled (true). By default multiselection is off.

This solved the issue for me. Thanks!