Xceed Grid for WinForms v4.3 Documentation
SearchMode Enumeration


Xceed.Grid.v4.3 Assembly > Xceed.Editors Namespace : SearchMode Enumeration
Value representing the mode to use when searching for items in the WinComboBox control.
Syntax
'Declaration
 
Public Enum SearchMode 
   Inherits System.Enum
'Usage
 
Dim instance As SearchMode
public enum SearchMode : System.Enum 
Members
MemberDescription
FirstCharSearch according to the first character of the item's string representation.
FullTextSearch according to the full text of the item's string representation.
NoneSearching is disabled.
Remarks

Items are searched for according to their string representation which is determined by the WinComboBox control's DisplayFormat property. For example, let's assume that the WinComboBox has 3 columns and 3 items with the following values:

Plante, Martin, 34
Drimonakos, Mathieu, 24
Ledoux, Pierre-Luc, 25

If the DisplayFormat property is set to "%Column2% %Column1% %Column3%", the string representation of the items will be:

Martin Plante 34
Mathieu Drimonakos 24
Pierre-Luc Ledoux 25

Entering "p" in the WinComboBox control will select "Pierre-Luc Ledoux 25" rather than "Martin Plante 34" because the string representation of the items is used rather than the physical order of the values/colums. If the DisplayFormat had not been modified, "%Column1%, %Column2%, %Column3%", "Plante, Martin, 34" would have been selected and not "Ledoux, Pierre-Luc, 25".

The value of the CompareType property can influence the search behavior. By default, the CompareType property is set to ExactMatch, therefore cases and accents are respected. Setting the CompareType property to CaseInsensitive, AccentInsensitive, or Both will change the way in which items are searched for. For example, if the CompareType property is set to AccentInsensitive, accents contained in the string representation of an item will be ignored, resulting in "ö" and "o" being considered as equal values.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Xceed.Editors.SearchMode

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Xceed.Editors Namespace
CompareType Property
SearchMode Property
AllowFreeText Property
Find(Object,String) Method