Back to Devexpress

ExcelFilteringDataEventArgs.ChangeText(Object, String) Method

windowsforms-devexpress-dot-xtraeditors-dot-filtering-dot-excelfilteringdataeventargs-dot-changetext-x28-system-dot-object-system-dot-string-x29.md

latest2.2 KB
Original Source

ExcelFilteringDataEventArgs.ChangeText(Object, String) Method

Changes the display text in the filter popup for the specified data value.

Namespace : DevExpress.XtraEditors.Filtering

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public bool ChangeText(
    object value,
    string text
)
vb
Public Function ChangeText(
    value As Object,
    text As String
) As Boolean

Parameters

NameTypeDescription
valueObject

The data value for which to change the display text.

| | text | String |

The text to be displayed in the filter popup for the specified data value.

|

Returns

TypeDescription
Boolean

true if the display text is successfully changed; otherwise, false.

|

Remarks

The code snippet below changes the default display text to a custom one for a particular string data value.

csharp
e.ChangeText("Beetle", "Coccinelle");
vb
e.ChangeText("Beetle", "Coccinelle")

See the result below.

See Also

ExcelFilteringDataEventArgs Class

ExcelFilteringDataEventArgs Members

DevExpress.XtraEditors.Filtering Namespace