ComponentOne True DBGrid for WinForms
Data Presentation Techniques / Automatic Data Translation with ValueItems / What are ValueItems?
In This Topic
    What are ValueItems?
    In This Topic

    The ValueItems object contains a collection and properties that define the association between an underlying data value and its visual representation within the grid. The ValueItems object contains a ValueItemCollection of zero or more ValueItem objects. Each ValueItem supports two main properties: Value, the underlying data value, and DisplayValue, its visual representation. Both properties are of type Object. Additionally, each C1DataColumn object contains ValueItems object.

    In code, manipulate the collection of ValueItem pairs as you would any other True DBGrid for WinForms or Visual Studio collection. ValueItems can be added, removed, or manipulated through the ValueItemCollection object.

    At design time a ValueItem Collection Editor is available through the C1TrueDBGrid Designer. For more information see Using the ValueItemCollection Editor.

    See Also