Skip to content

pbEditOnClick - cCJGrid

Determines whether grid cells can be edited by single-clicking on the item

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

Syntax

Property Boolean pbEditOnClick
Access Type Syntax
Read Access: Get pbEditOnClick to BooleanVariable
Write Access: Set pbEditOnClick to BooleanVariable/Value

Description

If True, when the grid cell is single-clicked, it will become editable. The grid must have its pbAllowEdit property set to True and the relevant grid column must have its pbEditable property set to True for this to work.

If False (the default), cells must be double-clicked to become editable.

pbEditOnKeyNavigation and pbEditOnClick are almost always set to the same values. These two properties determine edit mode behavior.

When pbEditOnKeyNavigation=True and pbEditOnClick=True, most cell navigation immediately enters edit mode. pbEditOnKeyNavigation=True will cause Tab key navigation to immediately enter edit mode, while pbEditOnClick=True will cause mouse navigation to enter edit mode. This style makes it easy to move into edit mode and is compatible with the legacy Grid class's navigation behavior.

Reversing these two properties creates an environment where you must do something special to enter edit mode. You must either press Enter, double click on the cell, or just start typing. This mode makes cell navigation quite efficient and flexible.