Gets or sets the display value of this item.
[Visual Basic]
Public Property DisplayValue As Object
[C#]
public object DisplayValue {get;set;}
[Delphi]
public property DisplayValue: Object read get_DisplayValue write set_DisplayValue;
Example
The following code sets the DisplayValue property to FR:
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. |