ExtendedTreeViewSyncParentChildCheckedState Property
This is used to set or get whether or not the parent and child node checked states are synchronized
Namespace: EWSoftware.ListControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public bool SyncParentChildCheckedState { get; set; }
Public Property SyncParentChildCheckedState As Boolean
Get
Set
public:
property bool SyncParentChildCheckedState {
bool get ();
void set (bool value);
}
member SyncParentChildCheckedState : bool with get, set
Property Value
BooleanThe 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.
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.