Skip to main content

WindowsFormsSettings.FindPanelParserKind Property

Specifies the default behavior of a control’s Find Panel when it combines entered words to create a search query. This setting is applied to all controls that have their OptionsFind.ParserKind properties set to Default.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.dll

Declaration

public static FindPanelParserKind FindPanelParserKind { get; set; }

Property Value

Type Description
FindPanelParserKind

The default ColumnViewOptionsFind.ParserKind property value for all Data Grids in the project.

Available values:

Name Description
Default

When the WindowsFormsSettings.FindPanelParserKind setting equals Default, this value is interpreted as And. If you set the WindowsFormsSettings.DefaultSettingsCompatibilityMode property to v18_2 or an earlier version, the Default value is interpreted as Mixed.

When a control’s ParserKind property is set to Default, the WindowsFormsSettings.FindPanelParserKind setting specifies the actual behavior for this control.

Mixed

Words are combined by the ‘OR’ operator. The operator changes to ‘AND’ if you specify a column name before a search word. The ‘administrator owner Country:Sweden’ string is treated as ‘(administrator OR owner) AND Sweden(in the Country column)’

Exact

The exact match. If the entered string contains the space characters, the words are not treated separately.

And

Words are combined by the ‘AND’ operator.

The operator changes to ‘OR’ when you precede a word with the ‘?’ character.

The operator changes to ‘NOT’/‘AND NOT’ when you precede a word with the ‘-‘ sign. The ‘?administrator ?Maria Sweden -Owner’ is treated as ‘Sweden AND (administrator OR Maria) AND NOT Owner’

Or

Words are combined by the ‘OR’ operator. The operator changes to ‘AND’ when you precede a word with the ‘+’ sign. The ‘administrator Maria +Sweden’ string is treated as the ‘Sweden AND (administrator OR Maria)’ query.

Custom

Allows you to implement a custom parser by handling a control’s ParseFindPanelText event.

Remarks

A control’s Find Panel combines entered words into a search query, using the AND or OR operators, or using a mixed mode. The DevExpress.Data.Filtering.FindPanelParserKind type enumerates available modes.

Use the WindowsFormsSettings.FindPanelParserKind property to specify the default word combination mode. This setting is applied to all controls that have their OptionsFind.ParserKind properties set to Default.

You can override the WindowsFormsSettings.FindPanelParserKind setting for individual controls with the following properties:

See Also