Back to Devexpress

ColumnViewOptionsFind.Condition Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-columnviewoptionsfind-0e706ab7.md

latest3.3 KB
Original Source

ColumnViewOptionsFind.Condition Property

Gets or sets the condition according to which the Data Grid searches for the string entered into the Find Panel.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(FilterCondition.Default)]
[DXCategory("Data")]
[XtraSerializableProperty]
public virtual FilterCondition Condition { get; set; }
vb
<DXCategory("Data")>
<DefaultValue(FilterCondition.Default)>
<XtraSerializableProperty>
Public Overridable Property Condition As FilterCondition

Property Value

TypeDefaultDescription
FilterConditionDefault

Specifies the filter condition.

|

Available values:

NameDescription
Contains

Specifies the Contains comparison operation.

| | StartsWith |

Specifies the StartsWith comparison operation.

| | Like |

Specifies the Like comparison operation.

| | Default |

Specifies the default comparison operation.

| | Equals |

Specifies the Equals comparison operation.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Condition
ColumnView

.OptionsFind .Condition

|

Remarks

The Condition property accepts the following values (run the “Find Panel” Demo Center module to test these modes).

  • FilterCondition.Default - inherits the global WindowsFormsSettings.FindPanelCondition property value.

  • FilterCondition.Contains - searches for all cells that contain the specified text, regardless of their position within the cell text.

  • FilterCondition.StartsWith - searches for cells whose text starts with the searched string.

  • FilterCondition.Equals - searches for cells whose text is an exact match with the searched string.

  • FilterCondition.Like - allows users to enter the “%” character that is a wildcard for any number of characters.

See Also

ColumnViewOptionsFind Class

ColumnViewOptionsFind Members

DevExpress.XtraGrid.Views.Base Namespace