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


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Viewers Namespace > ComboBoxViewer Class : DisplayFormat Property
Gets or sets the format with which the selected item is displayed in the ComboBoxViewer.
Syntax
'Declaration
 
<DescriptionAttribute("The format with which the selected item is displayed in the ComboBoxViewer.")>
<CategoryAttribute("Appearance")>
<AmbientValueAttribute("")>
Public Property DisplayFormat As String
'Usage
 
Dim instance As ComboBoxViewer
Dim value As String
 
instance.DisplayFormat = value
 
value = instance.DisplayFormat
[Description("The format with which the selected item is displayed in the ComboBoxViewer.")]
[Category("Appearance")]
[AmbientValue("")]
public string DisplayFormat {get; set;}

Property Value

A string representing the format with which the selected item is displayed in the ComboBoxViewer. By default, DefaultDisplayFormat.
Remarks

The default display format is the names (Xceed.Editors.ColumnInfo.Name) 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, 2".

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

ComboBoxViewer Class
ComboBoxViewer Members