Skip to main content
A newer version of this page is available. .
Tab

ListEditCustomHighlighting.StringToRegularExpression Property

Specifies whether to convert the “string” filter condition into a regular expression.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public bool StringToRegularExpression { get; set; }

Property Value

Type Description
Boolean

true, to convert the “string” filter condition into the regular expression; otherwise, false.

Remarks

Use the StringToRegularExpression property to convert the string filter condition (specified in the ListEditCustomFilteringEventArgs.CustomHighlighting property) into a regular expression.

The following code snippet illustrates how to highlight the “text” string followed by one or more occurrences of the “a”, “b” and “c” letters in the “Column1” and the number “50” followed by digits between 0 and 9 in the “Column2” among the filtered items.


e.CustomHighlighting = new Dictionary<string, string>() { { "Column1", "text[a-c]+" }, { "Column2", "50[0-9]" } }
e.CustomHighlighting.StringToRegularExpression = true;
See Also