ExtendedTreeViewSyncParentChildCheckedState Property

This is used to set or get whether or not the parent and child node checked states are synchronized

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public bool SyncParentChildCheckedState { get; set; }

Property Value

Boolean
The default is false to match the standard tree view's behavior. This can be set to true to ensure that the checked state of parent and child nodes is synchronized. If a child node is checked, all parent nodes are marked as checked too. If a parent is checked or unchecked, all child nodes are checked or unchecked as well. The checkbox on parent nodes with a mix of checked and unchecked children are drawn as a mixed checkbox to make them easy to pick out when collapsed. This is accomplished by using the tree node's StateImageIndex property. If you have specified a custom state image list, the third image is used to represent the mixed state.

Remarks

If you add or remove nodes from the tree after setting this to true, call SynchronizeCheckedStates to refresh the state of the parent and child check states.

See Also