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.v20.1.Core.dll

Declaration

public bool ShowCheckBoxInHeader { get; set; }
Public Property ShowCheckBoxInHeader As Boolean

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.

See Also