Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

VGridControl.CustomRecordDisplayText Event

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

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

#Declaration

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

#Event Data

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

Property Description
DisplayText Gets or sets the text displayed in the processed cell.
Properties Gets the processed row’s properties.
Value Gets the processed cell’s value.

#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’.

image

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