In my app, I have a form that adds data to a collection, which is then displayed in a Modern Table control. When I delete or update an item from the collection for the first time, everything works as expected. The item is deleted, and the OnSelect property of the table works fine. I can select records without issues. However, after I delete all items in the collection and then add new records again, the OnSelect property stops behaving as expected. When I attempt to select a record, it appears selected, but upon validation (or checking the Selected property), I get "No Record Selected" even though the table shows the selection visually.
Has anyone encountered this issue before? Any advice or potential solutions to ensure that the OnSelect property continues to work after clearing and re-adding items to the collection?