GridViewSettings.SetHeaderCaptionTemplateContent(String) Method

Allows setting a template for displaying column header captions.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public void SetHeaderCaptionTemplateContent(
    string content
)
Public Sub SetHeaderCaptionTemplateContent(
    content As String
)

Parameters

Name Type Description
content String

A string value specifying the template content.

Remarks

@Html.DevExpress().GridView(settings => {
    settings => {
        settings.Name = "gridView";
        ...
        settings.SetHeaderCaptionTemplateContent("<span style='color:red'>test</span>");
        ...
}).Bind(Model).GetHtml()

Online Demo

GridView - Templates

See Also