ComponentOne True DBGrid for WinForms
ValueItems Class
Object Model > ValueItems Class

The ValueItems object contains a collection and a couple of properties that can create alternate display values for database values in the grid. 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, 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. This object can be accessed as follows:

To write code in Visual Basic

Visual Basic
Copy Code
Me.C1TrueDBGrid.Columns(0).ValueItems.MaxComboItems = 5

To write code in C#

C#
Copy Code
this.c1TrueDBGrid.Columns[0].ValueItems.MaxComboItems = 5;
See Also