TreeList.SetNodeCheckState(TreeListNode, CheckState) Method

Sets the node's check state to the specified value.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll


public void SetNodeCheckState(
    TreeListNode node,
    CheckState state
Public Sub SetNodeCheckState(
    node As TreeListNode,
    state As CheckState


Name Type Description
node TreeListNode

A TreeListNode object whose check state is to be changed.

state CheckState

A CheckState value that specifies the node's new check state.


This SetNodeCheckState method overload does not affect the check states of the node's children.

The node checking feature is controlled by the TreeListOptionsView.CheckBoxStyle, TreeListOptionsView.RootCheckBoxStyle and TreeListNode.ChildrenCheckBoxStyle properties.

See Node Checking - Checkboxes and Radio Buttons to learn more.

See Also