Skip to main content
A newer version of this page is available.
All docs
V19.1

VGridControl.CustomColumnDisplayText Event

Allows you to customize the text displayed in a cell and the corresponding filter.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v19.1.dll

Declaration

[DXCategory("Appearance")]
public event CustomRecordDisplayTextEventHandler CustomColumnDisplayText

Event Data

The CustomColumnDisplayText event's data class is DevExpress.XtraVerticalGrid.Events.CustomRecordDisplayTextEventArgs.

Remarks

The Properties event argument allows you to identify the processed row. The Value event argument returns the processed cell’s value. Use the DisplayText property to customize the text displayed in the cell and the corresponding filter.

Example

The code below changes ‘UK’ in the ‘Country’ row to ‘United Kingdom’.


private void vGridControl1_CustomColumnDisplayText(object sender, DevExpress.XtraVerticalGrid.Events.CustomRecordDisplayTextEventArgs e) {
    if (e.Properties.FieldName == "Country") {
        if (e.DisplayText == "UK") e.DisplayText = "United Kingdom"; 
    }           
}
See Also