ColumnHeaderTemplateProps

Represents the contextual properties passed to column header template functions in the Syncfusion React Data Grid. Enables dynamic rendering of custom header content by providing access to column metadata and index. Commonly used in template-based headers to implement flexible and user-defined header rendering logic.

Props

The following table outlines the props for the ColumnHeaderTemplateProps:

NameTypeDefaultDescription
column
{}

The column configuration object containing metadata such as field name, data type, and formatting options. Facilitates context-aware header rendering by enabling templates to adapt based on column-specific attributes.

columnIndex
number
-

The zero-based index of the column within the grid. Useful for implementing conditional rendering or styling logic based on the column’s position.