TreeListView.IsCheckBoxEnabledFieldName Property

Gets or sets the name of a data source’s field whose values determine whether a node’s check box is enabled.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v21.1.dll


public string IsCheckBoxEnabledFieldName { get; set; }

Property Value

Type Description

A data source’s field name that defines whether a node’s check box is enabled.


Specify the IsCheckBoxEnabledFieldName / IsCheckBoxEnabledBinding option to bind the enabled state of check boxes to a property.


The IsCheckBoxEnabledBinding property takes precedence over the IsCheckBoxEnabledFieldName property.


The code sample below shows how to bind the enabled state of check boxes to the Enabled field:

View Example

<dxg:GridControl Name="gridControl">
        <dxg:GridColumn FieldName="Name"/>
        <dxg:GridColumn FieldName="Department"/>
        <dxg:GridColumn FieldName="Position"/>
        <dxg:TreeListView KeyFieldName="ID" ParentFieldName="ParentID" AutoExpandAllNodes="True"
                          ShowCheckboxes="True" CheckBoxFieldName="OnVacation" IsCheckBoxEnabledFieldName="Enabled" />
public class Employee {
    public int ID { get; set; }
    public int ParentID { get; set; }
    public string Name { get; set; }
    public string Position { get; set; }
    public string Department { get; set; }
    public bool OnVacation { get; set; }
    public bool Enabled { get; set; }
See Also