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

ColumnBase.ShowCheckBoxInHeader Property

Gets or sets whether a check-box is displayed in the column’s header.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v18.2.Core.dll

Declaration

public bool ShowCheckBoxInHeader { get; set; }

Property Value

Type Description
Boolean

true to show a check-box in the column’s header; otherwise, false.

Remarks

Note

The ShowCheckBoxInHeader property works for boolean fields only.

The following code sample shows how to display a check-box in the Has Attachment column’s header:

<dxg:GridControl>            
    <dxg:GridControl.Columns>
        <!-- ... -->
        <dxg:GridColumn FieldName="HasAttachment" ShowCheckBoxInHeader="True" />
    </dxg:GridControl.Columns>
</dxg:GridControl>

Note

When an end-user changes the column header check-box’s state, the Cell Validation and Row Validation events are not raised.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowCheckBoxInHeader property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also