Skip to main content
Tag

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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