Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Comcast/react-data-grid/llms.txt
Use this file to discover all available pages before exploring further.
Column<TRow, TSummaryRow>
Defines the configuration for a column in the grid.Properties
The name of the column. Displayed in the header cell by default.
A unique key to distinguish each column.
Column width. If not specified, it will be determined automatically based on grid width and specified widths of other columns.Can be:
- A number (pixels):
80 - A percentage:
'25%' - CSS grid values:
'max-content','minmax(100px, max-content)'
Minimum column width in pixels.
Maximum column width in pixels.
Class name(s) for cells. Can be a string or a function that returns a class name based on the row.
Class name(s) for the header cell.
Class name(s) for summary cells. Can be a string or a function that returns a class name based on the summary row.
Render function to render the content of cells.
Render function to render the content of the header cell.
Render function to render the content of summary cells.
Render function to render the content of group cells when using TreeDataGrid.
Render function to render the content of edit cells. When set, the column is automatically set to be editable.
Enables cell editing. If set and no editor property specified, then a text input will be used as the cell editor.
Function to determine how many columns this cell should span. Returns the number of columns to span, or undefined for no spanning.
Determines whether column is frozen. Frozen columns are pinned to the start edge (left in LTR, right in RTL).
Enable resizing of the column.
Enable sorting of the column.
Enable dragging of the column.
Sets the column sort order to be descending instead of ascending the first time the column is sorted.
Options for cell editing.
Render the cell content in addition to the edit cell content. Enable this option when the editor is rendered outside the grid, like a modal for example. By default, the cell content is not rendered when the edit cell is open.
Commit changes when clicking outside the cell.
Close the editor when the row value changes externally.
CalculatedColumn<TRow, TSummaryRow>
ExtendsColumn with additional computed properties used internally by the grid. This is the type passed to render functions.
Properties
Inherits all properties fromColumn<TRow, TSummaryRow> with the following additions and modifications:
Parent column group if nested.
The column index.
Nesting level when using column groups.
Column width (non-optional, computed from Column.width or defaults).
Minimum column width in pixels (non-optional, defaults to 50).
Maximum column width in pixels (non-optional).
Whether column is resizable (non-optional, defaults to false).
Whether column is sortable (non-optional, defaults to false).
Whether column is draggable (non-optional, defaults to false).
Whether column is frozen (non-optional, defaults to false).
Cell renderer (non-optional, defaults to renderValue).
Header cell renderer (non-optional, defaults to renderHeaderCell).
ColumnGroup<TRow, TSummaryRow>
Defines a group of columns that share a common header.Properties
The name of the column group. It will be displayed in the header cell.
Class name(s) for the header cell.
Child columns or column groups.
CalculatedColumnParent<TRow, TSummaryRow>
Represents a parent column group in the calculated column structure.Properties
The name of the column group.
Parent column group if nested.
The column index.
Number of columns this group spans.
Nesting level.
Class name(s) for the header cell.