Deselect rows based on a condition

Hello all,
I have created an agGrid table and I want to implement a condition, where if more than 2 rows are selected, I want to deselect the 2nd selection. I was wondering if there is a way to do so? Thank you!

Hi @user9056

Thanks for your question!

As far as I know, selecting or deselecting rows in Ag-grid based on certain conditions is not yet possible.

I’m looping in @PablocFonseca, who is the creator of the Streamlit Ag-grid component, in case he can come up with a solution :slight_smile:

Best,
Charly

1 Like