Disable st.data_editor by row

Hi, I’m wondering if it’s possible to make it so st.data_editor can disable editing by row, instead of just by column.

I’m working with time series data and ideally want to show a dataframe with years as the columns and line items as the rows - certain line items shouldn’t be editable since they are derived from other line items, so it would be nice to disable editing on them.

Hi @msquaredds,

Thanks for posting!

The current API supports disabling editing by column and not by row. You can however find a workaround by using a component like ad-Grid and look if they have a built-in solution for your use case.