Skip to main content

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

TreeList.SetNodeCheckState(TreeListNode, CheckState) Method

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

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public void SetNodeCheckState(
    TreeListNode node,
    CheckState state
)

#Parameters

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.

#Remarks

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