windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemlookupedit-7ca7e83c.md
Allows you to provide a custom filter criteria.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Events")]
public event PopupFilterEventHandler PopupFilter
<DXCategory("Events")>
Public Event PopupFilter As PopupFilterEventHandler
The PopupFilter event's data class is DevExpress.XtraEditors.Controls.PopupFilterEventArgs.
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'");
}
Private Sub LookUpEdit1_Properties_PopupFilter(sender As Object, e As DevExpress.XtraEditors.Controls.PopupFilterEventArgs) Handles LookUpEdit1.Properties.PopupFilter
e.Criteria = DevExpress.Data.Filtering.CriteriaOperator.Parse("ShipCountry == 'Brazil'")
End Sub
See Also
RepositoryItemLookUpEdit Class