LookUpEdit.PopupFilter Event
Allows you to specify a custom filter expression for the LookUpEdit
popup list.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v25.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Event Data
The PopupFilter event's data class is DevExpress.XtraEditors.Controls.PopupFilterEventArgs.
Remarks
The LookUpEdit
raises the PopupFilter
event before the dropdown list appears. Handle the PopupFilter
event to filter records in the dropdown list. Use the e.Criteria
event parameter to specify the filter expression.
The following example restricts the dropdown list to records where the “ShipCountry” field equals “Brazil”:
using DevExpress.Data.Filtering;
using DevExpress.XtraEditors.Controls;
void LookUpEdit1_PopupFilter(object sender, PopupFilterEventArgs e) {
e.Criteria = CriteriaOperator.Parse("ShipCountry == 'Brazil'");
}
See Also