Skip to main content

TableView.ShowCheckBoxSelectorColumn Property

Gets or sets whether to enable the Selector Column This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v23.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public bool ShowCheckBoxSelectorColumn { get; set; }

Property Value

Type Default Description
Boolean false

true to enable the Selector Column; otherwise, false.

Remarks

Web-style row selection works when the multiple row selection is enabled. Set the DataControlBase.SelectionMode property to Row or MultipleRow. The DataViewBase.NavigationStyle property must be set to Cell or Row.

Example

The following code sample demonstrates how to enable the Selector Column:

Show Checkbox Selector Column

<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
        x:Class="WpfApp41.MainWindow">
    <Grid>
        <dxg:GridControl ... 
                         SelectionMode="MultipleRow">
            <dxg:GridControl.Columns>
                <dxg:GridColumn FieldName="ID"/>
                <dxg:GridColumn FieldName="Name"/>
                <dxg:GridColumn FieldName="LastName"/>
                <dxg:GridColumn FieldName="Address"/>
                <dxg:GridColumn FieldName="PhoneNumber"/>
            </dxg:GridControl.Columns>
            <dxg:GridControl.View>
                <dxg:TableView ShowCheckBoxSelectorColumn="True"/>
            </dxg:GridControl.View>
        </dxg:GridControl>
    </Grid>
</Window>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowCheckBoxSelectorColumn 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