All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.v20.2.dll

Declaration

public string CheckBoxFieldName { get; set; }
Public Property CheckBoxFieldName As String

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