Filtering in Windows Forms ComboBox (SfComboBox)

The SfComboBox support you to filter the items by setting the Filter property of DropDownListView to a predicate that will be called for every data item to determine whether the item is visible or not.

NOTE

The RefreshFilter() method should be called after the filter predicate set.

//Filter
sfComboBox1.DropDownListView.View.Filter = FilterItem;
sfComboBox1.DropDownListView.View.RefreshFilter();

//Filter predicate
private bool FilterItem(object data)
{
  if ((data as USState).LongName.StartsWith("C"))
    return true;
  return false;
}
'Filter
sfComboBox1.DropDownListView.View.Filter = AddressOf FilterItem
sfComboBox1.DropDownListView.View.RefreshFilter()

'Filter predicate
private Boolean FilterItem(Object data)
  If (TryCast(data, USState)).LongName.StartsWith("C") Then
	Return True
  End If
  Return False