psCheckboxFalse - cCJGridColumn
Specifies the grid datasource value which represents a checkbox unchecked state (False)
Type: Property
Access: Read/Write
Data Type: String
Parameters: None
Syntax
Property String psCheckboxFalse
| Access Type | Syntax |
|---|---|
| Read Access: | Get psCheckboxFalse to StringVariable |
| Write Access: | Set psCheckboxFalse to StringVariable/Value |
Description
The psCheckboxTrue and psCheckboxFalse properties specify the grid datasource values for a column that correspond to a checked or unchecked cell. For example:
Object oStopColumn is a cCJGridColumn
Set psCheckboxTrue to "Red"
Set psCheckboxFalse to "Green"
Set pbCheckbox to True
End_Object
In the above example, whenever the column's data property = "Red" the column's checkbox appears checked, whereas "Green" represents an unchecked value.
To display checkboxes in each cell of a column, set pbCheckbox to True.
To determine whether a checkbox column is checked, use RowValue to get the value of the column, then compare it to the psCheckBoxTrue value:
String sFalseValue sStatus
Get psCheckboxFalse to sFalseValue
Get RowValue of oCustomer_Status iRow to sStatus
If (sStatus <> sFalseValue) Begin
:
End
Default is "0".
See Also