TreeList.GetNodeDisplayValue Event

Provides the ability to display custom values within cells.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

[Browsable(false)]
public event GetNodeDisplayValueEventHandler GetNodeDisplayValue
<Browsable(False)>
Public Event GetNodeDisplayValue As GetNodeDisplayValueEventHandler

Event Data

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

Property Description
ChangedByUser Gets whether the user changed the value in an editor, or the value is changed in code. Inherited from CellValueChangedEventArgs.
Column Gets a column to which the cell processed by an event belongs. Inherited from CellEventArgs.
Node Gets the current Tree List node. Inherited from NodeEventArgs.
Value Gets or sets the value contained within the processed cell.

Remarks

The GetNodeDisplayValue event fires for each cell within the TreeList control. The NodeEventArgs.Node and CellEventArgs.Column properties of the event parameter allow you to determine the node and column to which the processed cell belongs. The parameter's GetNodeDisplayValueEventArgs.Value property transmits the value which is about to be displayed within the cell. Assign a custom value to this property to change the cell's display value.

Custom values assigned in a GetNodeDisplayValue event handler are formatted according to the owner column's settings and editor used for this cell.

See Also