DevExtreme Reactive component libraries are in maintenance support mode.
The Grid allows you to organize column headers into bands.
The following plugins implement the Banded Columns feature:
Import the plugins listed above and specify the TableBandHeader
plugin's columnBands
property to set up a Grid with banded columns. The band nesting level depth is unlimited.
import React, { useState } from 'react';
export default () => {
You can customize the appearance of the header with bands by overriding the TableBandHeader
and TableHeaderRow
plugins' cellComponent
properties:
import React, { useState } from 'react';
const BandCell = ({ data: { column } }) => {
NOTE: The default className
property is retained while customizing the TableHeaderRow
plugin's cell component.