Enables drag resizing through the header resize handle.
allowColumnReorder
boolean
true
Enables horizontal drag reordering from column headers.
Usage Guidelines
When to use
Use DataGrid for large interactive data sets that need native scrolling, lazy cell rendering, editing, selection, column resizing, column reordering, merged cells, and custom typed cell rendering.
Best practices
•
Use getCellContent instead of pre-building large row arrays for million-row data sets.
•
Keep renderCell pure and fast; memoize expensive custom cell renderers.
•
Use fixed rowHeight when possible for the fastest getItemLayout path.
•
Use column ids that stay stable across sorting, filtering, and reordering.
Accessibility
DataGrid renders cells and headers as accessible pressable controls with row, column, and value labels. Provide accessibilityLabel on image or custom cells when the default value is not descriptive.
Related Components
Table
A compound table component for displaying structured tabular data.
List
A compound list component for displaying ordered or unordered items.