How to refresh ag-grid data after deleting selected row


I use MongoDB to store data, but I facing one issue that the ag-grid did not refresh after click customize button to delete selected row.

please advise how to achieve this goal, thanks!

I have the same issue, but it works (in terms of deleting the row) when I check the select box for that row a second time. I’ve never been able to figure out a solution, but haven’t looked into it too hard as it’s kind of functional. I think it’s because the aggrid component doesn’t refresh after the first deletion.

Hi @ac3

thank you for your comment.

You need to use the grid builder. It will be something like this:

1) Import gridoptionsbuilder

from st_aggrid import AgGrid, GridOptionsBuilder

2) Make object (and apply the settings you like)

gb = GridOptionsBuilder.from_dataframe(loaded_data)
gb.configure_default_column(groupable=True, value=True, enableRowGroup=True, aggFunc='sum', editable=True)
gb.configure_selection('multiple', use_checkbox=False, groupSelectsChildren=True, groupSelectsFiltered=True)
my_gridOptions =

3) Apply to Aggrid

new_dataframe = AgGrid(loaded_data, 
                       gridOptions = my_gridOptions,

See the link for all details