The ValueItems object contains a collection and properties that define the association between an underlying data value and its visual representation within the grid. The ValueItems object contains a ValueItemsCollection of zero or more ValueItem objects. Each ValueItem supports two main properties: Value, the underlying data value, and DisplayValue, its visual representation. Both properties are of type Object. Additionally, each C1DataColumn object contains ValueItems object.
In code, manipulate the collection of ValueItem pairs as you would any other True DBGrid or Visual Studio collection. ValueItems can be added, removed, or manipulated through the ValueItemCollection object.
At design time a ValueItem Collection Editor is available through the C1TrueDBGrid Designer. For more information see Using the ValueItemCollection Editor.
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |