TCustomDBCheckBoxEh.ValueChecked Property

The check box has a check mark in it, but it is grayed.

property ValueChecked: String;

Use ValueChecked to specify the field value represented by the check box when it is checked. If the value of the ValueChecked property is equal to the data in the field of the current record of the dataset, the database check box appears checked. When the user checks the database check box, the field value is set to ValueChecked. 


ValueChecked can represent more than one value in a semicolon-delimited list of items. If any of the items matches the contents of the field of the current record in the dataset, the check box appears checked. For example, set the value of ValueChecked string like this: 


DBCheckBoxEh1.ValueChecked := 'True;Yes;On';
Copyright (c) 1998-2013. All rights reserved.
What do you think about this topic? Send feedback!