Update st_aggrid

Hi everyone!
I created a st_aggrid with an update button. After clicking the update button, the database will be updated. However, the data at st_aggrid is will not update automatically. How can I trigger an update by clicking that update button as well?

My current update button: Update Database
The button I want: Update Database + Refresh st_aggrid

Would you mind giving me some hints, thanks!

Hi! I’m trying to make an aggrid button inside st-aggrid component, so I’m wondering if your update button is an aggrid button or a streamlit button?