ComponentOne List 8.0 for ActiveX
Displaying Boolean values as check boxes

You can also use the ValueItems collection to represent Boolean values as in-cell check boxes. Prior to version 6.0, you had to define two ValueItem objects (representing the underlying values 0 and -1) and assign an appropriate DisplayValue picture to each one. However, in version 6.0 and newer, you can achieve the same effect without defining any ValueItem objects—just set the Presentation property to 4 - Check Box.

Note that you do not need to select the Translate check box to enable automatic data translation. The following figure shows a typical check box display.

Note: If you want to use different check box bitmaps, you can still define a two-state ValueItems collection as described earlier. Set the Presentation property to 0 - Normal, and set the Translate property to True.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback