MultiColumnCombo for WinForms | ComponentOne
C1.Win.Input.MultiColumnCombo Namespace / ISupportUnboundMode Interface / AddItem Method
A string containing the data for the new row. Items are separated by the value of the AddItemSeparator property.
Example

In This Topic
    AddItem Method (ISupportUnboundMode)
    In This Topic
    Adds a new item to the end of view in the unbound mode.
    Syntax
    'Declaration
     
    
    Sub AddItem( _
       ByVal newItem As String _
    ) 
    void AddItem( 
       string newItem
    )

    Parameters

    newItem
    A string containing the data for the new row. Items are separated by the value of the AddItemSeparator property.
    Remarks
    This method will add columns to the view so that all values from the newItem get into the view.
    Example
    The code below adds 10 rows and 3 columns to the view.
    multiCombo.AddItemSeparator = ",";
    for (int i = 0; i < 10; i++)
      multiCombo.AddItem($"1val{i},2val{i},3val{i}");
    See Also