ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

ValueItem.Value Property

Gets or sets the raw (untranslated) value of this item.

[Visual Basic]

Public Property Value As String

[C#]

public string Value {get;set;}

[Delphi]

public property Value: String read get_Value write set_Value;

Example

The following code sets the Value property to France:

·      Visual Basic

       Dim VItem As C1.Win.C1TrueDBGrid.ValueItem = New C1.Win.C1TrueDBGrid.ValueItem()

       VItem.DisplayValue = "FR"

       VItem.Value = "France"

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

·      C#

       C1.Win.C1TrueDBGrid.ValueItem VItem = new C1.Win.C1TrueDBGrid.ValueItem();

       VItem.DisplayValue = "FR";

       VItem.Value = "France";

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

·      Delphi

       var VItem: C1.Win.C1TrueDBGrid.ValueItem;

       VItem := C1.Win.C1TrueDBGrid.ValueItem.Create;

       VItem.DisplayValue := 'FR';

       VItem.Value := 'France';

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

See Also

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


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