Sizing & ordering
The resizing and reordering logic underneath resizableColumns and reorderableColumns.
resolveColumnWidths, fitColumnsToWidth, applyColumnOrder, and moveColumnBefore are the functions DataGridComponent calls internally when resizableColumns or reorderableColumns is enabled. Reach for them directly if you're building a custom grid adapter.
The same logic, in the React grid
resizableColumns + reorderableColumns
Live example