Skip to content

Disable Column Drag and Drop in data_editor and dataframe #11222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
Andrew-DeCandia-Volpe opened this issue Apr 28, 2025 · 1 comment
Open
2 tasks done
Labels
feature:st.data_editor feature:st.dataframe type:enhancement Requests for feature enhancements or new features

Comments

@Andrew-DeCandia-Volpe
Copy link

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

A feature was added for Issue #8796 that allowed the rearranging of columns in st.dataframe and st.data_editor. This feature is useful, but not always wanted, and I would like the ability to lock the order of columns.

Why?

Sometimes you don't want users to be able to reorder columns.

How?

add a parameter to st.dataframe and st.data_editor called "lock_columns" that allows you to lock all columns. Bonus points if you can lock only pinned columns as well.

Additional Context

No response

@Andrew-DeCandia-Volpe Andrew-DeCandia-Volpe added the type:enhancement Requests for feature enhancements or new features label Apr 28, 2025
Copy link

To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.

Your vote helps us identify which enhancements matter most to our users.

Views

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:st.data_editor feature:st.dataframe type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

2 participants