Back to Devexpress

TreeViewControl.ChangeNodeCheckState(Int32, Nullable<Boolean>) Method

wpf-devexpress-dot-xpf-dot-grid-dot-treeviewcontrol-dot-changenodecheckstate-x28-system-dot-int32-system-dot-nullable-system-dot-boolean-x29.md

latest1.8 KB
Original Source

TreeViewControl.ChangeNodeCheckState(Int32, Nullable<Boolean>) Method

Changes the specified node’s check state.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public void ChangeNodeCheckState(
    int rowHandle,
    bool? checkState
)
vb
Public Sub ChangeNodeCheckState(
    rowHandle As Integer,
    checkState As Boolean?
)

Parameters

NameTypeDescription
rowHandleInt32

The node’s row handle.

| | checkState | Nullable<Boolean> |

The check state applied to the node.

|

Remarks

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

You can apply three states to a node’s check box:

Check StatecheckState Value
Checkedtrue
Uncheckedfalse
Indeterminatenone

See Also

TreeViewControl Class

TreeViewControl Members

DevExpress.Xpf.Grid Namespace