BeforeFocusNodeEventArgs.CanFocus Property
In This Article
Gets or sets a value indicating whether focus is allowed to be moved.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Boolean | true if the focus is allowed to be moved; otherwise false. |
#Remarks
Use the CanFocus property to prohibit moving focus to particular nodes. Set this property to false for this purpose. The node to which focus is being moved can be identified via the NodeEventArgs.Node property.
Note: if a user double-clicks a parent node which cannot be focused (as a result of handling the TreeList.BeforeFocusNode event, in particular), nodes are expanded and or collapsed.
See Also