Skip to main content
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.v24.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

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

The GridControl does not raise the following events when a user changes the state of the column header check box:

See Also