ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Using the ValueItemCollection Editor

The ValueItemCollection is a collection of values and display values which allows for translated data within a column. This collection object can be accessed through C1DataColumn.ValueItems.Values property. Accessing these properties in code is done through this collection, and is demonstrated by the following:

·      Visual Basic

Me.C1TrueDBGrid1.Columns(0).ValueItems.Values

·      C#

this.C1TrueDBGrid1.Columns(0).ValueItems.Values;

·      Delphi

Self.C1TrueDBGrid1.Columns[0].ValueItems.Values;

In order to make these properties more easily modifiable, there is a ValueItem Collection Editor which enables the user to add ValueItems, remove ValueItems, and alter their Value and DisplayValue properties. This editor is accessible through the Properties window. Clicking on the ellipsis button (…) next to the Columns item in the Properties window will bring up the C1TrueDBGrid Designer, then expanding the ValueItems node will expose the ValueItems collection items. Clicking on the ellipsis button next to the ValuesItems node will bring up the ValueItems Editor.

 


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