Examples
Column DnD Ordering Example
An example of Shadcn Table which shows how to enable column to be re-arranged via drag and drop.
Shadcn Table has built-in support for column drag and drop re-ordering. Learn more about column ordering in the Column Ordering Feature Guide.
Try it
- Drag the
Cityheader ontoFirst Name.Citymoves to the front. - Open
Show/Hide columnsand clickReset order. The columns go back to their first order.