Data Presentation Techniques > Automatic Data Translation with ValueItems > 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, 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; nor do you need to select the CycleOnClick check box to enable end users to toggle the value of a cell by clicking it. 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 and CycleOnClick properties to True.