Skip to main content
All docs
V24.2

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

TreeViewControl.CheckBoxFieldName Property

Gets or sets the name of a field in a data source to which check boxes are bound. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public string CheckBoxFieldName { get; set; }

#Property Value

Type Description
String

The field name in a data source.

#Remarks

Set the TreeViewControl.ShowCheckboxes property to true to display check boxes.

#Example

<dxg:TreeViewControl ShowCheckboxes="True"
                     AllowRecursiveNodeChecking="True"
                     CheckBoxFieldName="OnVacation"
                     .../>
public class Employee {
    public int ID { get; set; }
    public string Name { get; set; }
    public bool OnVacation { get; set; }
}

You can bind check boxes to the fields of the Boolean or Nullable<Boolean> data type only.

See Also