Skip to content

CommitFocusField - cCJGrid

If the a grid edit control is active, copies the value of the control to the grid datasource

Type: Procedure

Syntax

Procedure CommitFocusField

Call Example

Send CommitFocusField

Description

When a grid is in edit mode, the current value of the edit control is not updated in the datasource until edit mode is closed for the cell. This update is automatic and occurs when the cell or object focus changes. CommitFocusField allows you to update the current edit control value without closing the edit control.

You should rarely need to use this message. If you need to, make sure that the edit control's value is updated you probably want to make sure that you are not in edit mode. This may be done sending EndEdit.

While an edit is active, the cell's value in the datasource will not contain the edit's current value. If you access the cell's value through the cCJGridColumn's SelectedRowValue or RowValue methods the value returned will always be up to date.