Need to refresh the datatable programatically

I need to refresh the datatable to change the column header color after some actions. The Datatable is not refreshing after the other state changes in the component. I am using columnHeaderSlot to display customer column header. how to recall it dynamically?