VGridControl.CustomColumnDisplayText Event

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

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v20.1.dll

Declaration

[DXCategory("Appearance")]
public event CustomRecordDisplayTextEventHandler CustomColumnDisplayText
<DXCategory("Appearance")>
Public Event CustomColumnDisplayText As CustomRecordDisplayTextEventHandler

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. xref:BaseRow.Properties

Examples

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