Editing Cell Data
The pbAllowEdit grid property determines if cells can be edited. This can also be controlled at the column level with the column's pbEditable property.
Two properties determine how editing is initiated:
- If
pbEditOnClickis True, the cell will enter edit mode if you click on the cell. When False, you must double-click to edit the cell. - If
pbEditOnKeyNavigationis False, navigating into a cell (e.g., pressing Tab) will enter edit mode.
In all cases, pressing Enter toggles in and out of edit mode. Pressing Esc while in edit mode cancels the edit. Finally, if you move to any cell and just start typing, it will enter edit mode. Usually, pbEditOnClick and pbEditOnKeyNavigation will contain reversed values (one True, the other False).
When you enter edit mode, the edit control will most likely be a standard DataFlex edit control. This control is used because it provides the same masked input behavior as the rest of your application. Combo edits and checkboxes use the built-in Codejock control. If you set the column property pbVDFEditControl to False, that column will use the Codejock edit control, which means you will not have standard masked input support.