Skip to main content

RepositoryItemSearchControl.ShowSearchByButton Property

Allows users to choose data fields to search in. This property is in effect when the RepositoryItemSearchControl.SearchByMembers property contains the fields to search in.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool ShowSearchByButton { get; set; }

Property Value

Type Default Description
Boolean false

true, to allow users to choose data fields to search in; otherwise, false.

Remarks

Search Control - Search By Member

The code sample below illustrates how to let users search only by the “Product” and/or “Price” fields.

repositoryItemSearchControl1.ShowSearchByButton = true;
repositoryItemSearchControl1.SearchByMembers = "Product;Price";
See Also