@rhjensen79, the grid call has an
reload_data=True|False argument, if it is true, grid will reload the values of the input data and return it, if False component will return the data already on the grid.
Please note that setting this to always True, will cause the grid to reload the original data on every streamlit refresh, including after cells editions.
In this case, the state of you application (the edited dataframe in this case) needs to be stored somewhere else in order to “survive” streamlit refresh (a text file, for example).
I do not know your use case. But temporary text files may be a bad idea because of performance. If you look in the forums there is a discussion regarding session state, which is one way of holding the state of your application in memory between streamlit refreshs.