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.2.Core.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core
Declaration
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