Xceed Grid for WinForms v4.3 Documentation
DisplayFormat Property (WinComboBox)


Xceed.Grid.v4.3 Assembly > Xceed.Editors Namespace > WinComboBox Class : DisplayFormat Property
Gets or sets the format with which the SelectedItem is displayed in the combobox.
Syntax
'Declaration
 
<DescriptionAttribute("The format with which the SelectedItem is displayed in the combobox.")>

<CategoryAttribute("Appearance")>

Public Property DisplayFormat As String
'Usage
 
Dim instance As WinComboBox

Dim value As String

 

instance.DisplayFormat = value

 

value = instance.DisplayFormat
[Description("The format with which the SelectedItem is displayed in the combobox.")]

[Category("Appearance")]

public string DisplayFormat {get; set;}

Property Value

A string representing the format with which the SelectedItem is displayed in the combobox. By default, DefaultDisplayFormat.
Remarks

The default display format is the names of each column separated by a comma (,). For example, if the combobox contains 3 columns named "LastName", "FirstName", and "Age", the display format will be "%LastName%, %FirstName%, %Age%". When an item is selected, the display format will be resolved to the values of the correspond columns. For example: "Robitaille, Naomi, 6".

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

WinComboBox Class
WinComboBox Members