ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

ValueItemCollection.Add Method

Adds a ValueItem to the end of the collection.

[Visual Basic]

Public Function Add( _

ByVal vi As ValueItem _

) As Integer

[C#]

public int Add(

ValueItem vi

);

[Delphi]

public function Add(

vi: ValueItem

): Int32;

Parameters

vi

The ValueItem to add.

Return Value

The index at which the ValueItem has been added.

Example

The following code adds the ValueItem to the collection using the Add method:

·      Visual Basic

       Me.C1TrueDBGrid1.Columns("Country").ValueItems.Values.Add(VItem)

·      C#

       this.c1TrueDBGrid1.Columns["Country"].ValueItems.Values.Add(VItem);

·      Delphi

       Self.C1TrueDBGrid1.Columns['Country'].ValueItems.Values.Add(VItem);

See Also

ValueItemCollection Class | ValueItemCollection Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.