The ValueItems object contains a collection and a couple of properties that can create alternate display values for database values in the list. It can specify an allowable input value for a given C1DataColumn object or it can also be used to translate raw data values into alternate text or graphics for display. For example, you may want to display Balance Due and Paid in Full instead of the numeric data values 0 and 1. The ValueItems object contains display properties and a collection of ValueItem objects, the ValueItemCollection. You can access this object as follows:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
Me.C1List1.Columns(0).ValueItems.Values |
To write code in C#
C# |
Copy Code
|
---|---|
this.c1List1.Columns[0].ValueItems.Values; |