table not getting refreshed

I am editing the dataSource from thread from a Thread but the table UI is not getting updated.
Anyone having solution for this.

See
this thread
for basic tips.

If you’re a Pro Account subscriber, please see
#107: How do I update UI from another thread?
.

I have done this by another way…
But not sure whether it is the correct way or not…

What I did is, the moment I update the dataSource, I once again set the table datasource with the newly edited dataSource.

class TableDataContainer{

      updateDatatSource(){
            table.setContainerDataSource(this);
      }

}

This call
updateDataSource
is invoked from the thread…