Skip to main content

LookUpEdit.PopupFilter Event

Allows you to explicitly set the expression to filter lookup items.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

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

Event Data

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

Remarks

The code below illustrates how to show only records with “Brazil” in the “ShipCountry” field.

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