Whenever you update the data source the selection in the table will be cleared. You should update some other variable for the data and on selection change, save the currently selected id, update the table’s data source and then re-select the old row.

Best Regards,
Svetoslav Borislavov

Smart UI Team