TreeListView.CustomColumnDisplayText Event

Enables custom display text to be provided for any data cell.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

public event TreeListCustomColumnDisplayTextEventHandler CustomColumnDisplayText
Public Event CustomColumnDisplayText As TreeListCustomColumnDisplayTextEventHandler

Event Data

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

Property Description
Column Gets the column which owns the processed cell.
DisplayText Gets or sets the display text for the cell currently being processed.
Node Gets the node which owns the processed cell.
ShowAsNullText Specifies whether text corresponding to a null value appears faded.
Value Gets the processed cell's value.

Remarks

The CustomColumnDisplayText event can be used to display custom text within any cell. This event is fired for both bound and unbound columns. The text provided via this event will be used when the view is printed.

The CustomColumnDisplayText event is raised only when a unique edit value is assigned to a grid cell.

Initially the TreeListCustomColumnDisplayTextEventArgs.DisplayText parameter contains the cell's current display text. To provide custom display text, assign the required string to this property.

See Also