Xceed Grid for WinForms v4.3 Documentation
Add(ComboBoxItem) Method


Xceed.Grid.v4.3 Assembly > Xceed.Editors Namespace > ComboBoxItemList Class > Add Method : Add(ComboBoxItem) Method
The ComboBoxItem to add.
Adds a ComboBoxItem to the list.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal item As ComboBoxItem _
) As Integer
'Usage
 
Dim instance As ComboBoxItemList
Dim item As ComboBoxItem
Dim value As Integer
 
value = instance.Add(item)
public int Add( 
   ComboBoxItem item
)

Parameters

item
The ComboBoxItem to add.

Return Value

The index at which the new item was added.
Remarks

If the combobox contains existing columns, the values contained within the ComboBoxItemmust match the datatypes of the existing columns otherwise an exception will be thrown. If the combobox does not contain existing columns, columns will be created an System.ObjectColumnInfo.DataType.

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

ComboBoxItemList Class
ComboBoxItemList Members
Overload List