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

RepositoryItemLookUpEdit.PopupFilter Event

Allows you to provide a custom filter criteria.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[DXCategory("Events")]
public event PopupFilterEventHandler PopupFilter

Event Data

The PopupFilter event's data class is DevExpress.XtraEditors.Controls.PopupFilterEventArgs.

Remarks

The PopupFilter event allows you to provide a custom filter criteria for data in the editor’s popup window. When handling this event, create a criteria in code and assign it to the Criteria event argument. See an example below.


private void lookUpEdit1_Properties_PopupFilter(object sender, DevExpress.XtraEditors.Controls.PopupFilterEventArgs e) {
    e.Criteria = DevExpress.Data.Filtering.CriteriaOperator.Parse("ShipCountry == 'Brazil'");
}
See Also