VGridControl.CustomRecordDisplayText Event
Allows you to customize the text displayed in a cell and the corresponding filter.
Namespace: DevExpress.XtraVerticalGrid
Assembly: DevExpress.XtraVerticalGrid.v24.1.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’.
private void vGridControl1_CustomRecordDisplayText(object sender, DevExpress.XtraVerticalGrid.Events.CustomRecordDisplayTextEventArgs e) {
if (e.Properties.FieldName == "Country") {
if (e.DisplayText == "UK") e.DisplayText = "United Kingdom";
}
}