ComponentOne True DBGrid for WinForms
Design-Time Support / Using the ValueItemCollection Editor
In This Topic
    Using the ValueItemCollection Editor
    In This Topic

    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:

    To write code in Visual Basic

    Visual Basic
    Copy Code
    Me.C1TrueDBGrid1.Columns(0).ValueItems.Values
    

    To write code in C#

    C#
    Copy Code
    this.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 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:


    See Also