Back to Devexpress

TableView.GroupRowCheckBoxFieldName Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-28eb17d3.md

latest2.6 KB
Original Source

TableView.GroupRowCheckBoxFieldName Property

Gets or sets the name of a field in a data source to which the group row’s check-box is bound.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public string GroupRowCheckBoxFieldName { get; set; }
vb
Public Property GroupRowCheckBoxFieldName As String

Property Value

TypeDescription
String

The name of a field to which the group row’s check-box is bound.

|

Remarks

Note

The GroupRowCheckBoxFieldName property works for boolean fields only.

The following code sample shows how to display a check-box corresponding to the HasAttachment field in the group row:

xaml
<dxg:GridControl>
    <dxg:GridControl.View>
        <dxg:TableView GroupRowCheckBoxFieldName="HasAttachment" />
    </dxg:GridControl.View>
    <dxg:GridControl.Columns>
        <!-- ... -->
        <dxg:GridColumn FieldName="HasAttachment" />
    </dxg:GridControl.Columns>    
</dxg:GridControl>

If Selector Column and group row check boxes are enabled, the GridControl displays check boxes defined by the GroupRowCheckBoxFieldName property in group rows.

Note

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

See Also

ActualShowCheckBoxInGroupRow

IsChecked

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace