ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

ValueItemCollection Class

Each C1DataColumn object within a C1TrueDBGrid or C1TrueDBDropDown control stores its set of display value/value pairs in objects called ValueItem objects. The ValueItemCollection object is a collection of these pairs. This collection can be accessed through the Values property of the ValueItems object. For instance, in order to alter the first ValueItem in the collection, the code would look like:

·      Visual Basic

Me.C1TrueDBGrid.Columns(0).ValueItems.Values(0).DisplayValue = "Canada"

·      C#

this.C1TrueDBGrid.Columns[0].ValueItems.Values[0].DisplayValue = "Canada";

·      Delphi

Self.C1TrueDBGrid.Columns[0].ValueItems.Values[0].DisplayValue := 'Canada';


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