Skip to content

psCheckboxTrue - cCJGridColumn

Specifies the grid datasource value which represents a checkbox checked state (True)

Type: Property
Access: Read/Write
Data Type: String
Parameters: None

Syntax

Property String psCheckboxTrue
Access Type Syntax
Read Access: Get psCheckboxTrue to StringVariable
Write Access: Set psCheckboxTrue 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 sTrueValue sStatus

Get psCheckboxTrue to sTrueValue
Get RowValue of oCustomer_Status iRow to sStatus
If (sStatus = sTrueValue) Begin
    :
End

Default is "1".

See Also

ValueToCheckedState