TreeListView.CustomColumnDisplayText Event
Enables custom display text to be provided for any data cell.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core
Declaration
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the CustomColumnDisplayText event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.