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:
Me.C1TrueDBGrid.Columns(0).ValueItems.MaxComboItems = 5
· C#
this.C1TrueDBGrid.Columns[0].ValueItems.MaxComboItems = 5;
· Delphi
Self.C1TrueDBGrid.Columns[0].ValueItems.MaxComboItems := 5;
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |