Back to Devexpress

TreeViewControl.CheckBoxFieldName Property

wpf-devexpress-dot-xpf-dot-grid-dot-treeviewcontrol-e97c591f.md

latest2.0 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
String

The field name in a data source.

|

Remarks

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

Example

xaml
<dxg:TreeViewControl ShowCheckboxes="True"
                     AllowRecursiveNodeChecking="True"
                     CheckBoxFieldName="OnVacation"
                     .../>
csharp
public class Employee {
    public int ID { get; set; }
    public string Name { get; set; }
    public bool OnVacation { get; set; }
}
vb
Public Class Employee
    Public Property ID As Integer
    Public Property Name As String
    Public Property OnVacation As Boolean
End Class

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

See Also

TreeViewControl Class

TreeViewControl Members

DevExpress.Xpf.Grid Namespace