How to auto select ag-grid header checkbox using streamlit

Created ag-grid using streamlit with checkboxes, i want all the items checked by default including header item.

gb.configure_column(df_response.columns[0], headerCheckboxSelection=True)

is there any way we can do it?

also what is the way to store checked data via jscode?


Hi @mrityunjay, if you want to select all rows, try: gb.configure_selection(‘multiple’, use_checkbox=True, pre_selected_rows=[1,3])