FindPanelParserKind Enum

Contains values that specify how a control's Find Panel combines entered words to create a search query.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v19.2.dll

Declaration

public enum FindPanelParserKind
Public Enum FindPanelParserKind

Members

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

Use the WindowsFormsSettings.FindPanelParserKind property to specify the default behavior for all controls.

To override this behavior for individual controls, use the following properties:

See Also