Skip to main content
A newer version of this page is available. .
Tab

GridViewStyles.Header Property

Specifies the appearance of all column headers.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

NuGet Package: DevExpress.Web

Declaration

public GridViewHeaderStyle Header { get; }

Property Value

Type Description
GridViewHeaderStyle

Style settings that specify the appearance of all column headers.

Remarks

The Header property allows you to specify the appearance of all column headers in markup and in a CSS class.

To customize the appearance of a particular column’s header, specify a column’s HeaderStyle property.

Markup Example

<dx:ASPxGridView ID="ASPxGridView1" runat="server">
    <%--...--%>
    <Styles>
        <Header BackColor="Snow" ForeColor="Black" />
    </Styles>
</dx:ASPxGridView>

CSS Example

#ASPxGridView1 .allColumnHeadersStyle {
    background-color: snow;
    color: black;
}
<dx:ASPxGridView ID="ASPxGridView1" runat="server">
    <%--...--%>
    <Styles>
        <Header CssClass="allColumnHeadersStyle" />
    </Styles>
</dx:ASPxGridView>
See Also