TreeList.CalcNodeHeight Event

Allows you to assign custom node height.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.1.dll


public event CalcNodeHeightEventHandler CalcNodeHeight

Event Data

The CalcNodeHeight event's data class is CalcNodeHeightEventArgs. The following properties provide information specific to this event:

Property Description
Node Gets the current Tree List node. Inherited from NodeEventArgs.
NodeHeight Gets or sets the current node’s height in pixels.


Write a CalcNodeHeight event handler to assign custom node height for the TreeList control. The event fires for each visible node each time a node’s look & feel is affected. The parameter transmitted to the event allows you to identify a node whose height is calculated and assign the appropriate custom height.

Note: the CalcNodeHeight event fires only if the TreeListOptionsBehavior.AutoNodeHeight option is disabled.

Use the CalcNodeHeight event if you want to assign different node heights to the TreeList control. If you want to assign the same height to all nodes, use the TreeList.RowHeight property instead.

See Also