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.

1 Like

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.

Have a similar use case where a column value indicates if the record/row is read-only or not. Would be awesome to be able to enable/disable editing a row based on that value.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.