GridControl.CustomColumnDisplayText Event
Enables custom display text to be provided for any data cell.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.dll
#Declaration
#Event Data
The CustomColumnDisplayText event's handler receives an argument of the CustomColumnDisplayTextEventArgs type. The following properties provide information specific to this event:
Property | Description |
---|---|
Column | Gets the column which owns the processed cell. |
Display |
Gets or sets the display text for the cell currently being processed. |
List |
Gets the index of a record in a data source that corresponds to the processed data row. |
Row | Gets the row which owns the processed cell. |
Row |
Gets the processed row's handle. |
Show |
|
Source | Gets the grid control that raised the event. |
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 grid is printed.
Initially the CustomColumnDisplayTextEventArgs.DisplayText parameter contains the cell's current display text. To provide custom display text, assign the required string to this property.
NOTE
The Custom
- To provide a cell's display text when data is not sorted by a column.
To provide column display text and compare the supplied strings when data is grouped or sorted by this column.
In this instance, the event's Row
Handle and ListSource parameters return invalid values, and it is not possible to determine the currently processed row, and therefore obtain other cell values.Row Index To supply text to display within a column's Filter Drop
Down. In this instance, the event's Row
Handle and ListSource parameters return invalid values, and it's not possible to determine the currently processed row, and therefore obtain other cell values.Row Index
This means, that in most instances the Custom