CGXGridCore::OnCancelEditing

virtual BOOL OnCancelEditing(ROWCOL nRow, ROWCOL nCol);?

nRow

Specifies the row id.

nCol

Specifies the column id.

Return Value

Returns TRUE if the input can be canceled; FALSE to prevent cancellation.

Remarks

Overridable method which is called when the user has pressed the ESC key on the current cell. The method is called from CGXControl::OnCancelEditing.

You can either override OnCancelEditing for all controls or subclass a specific control and override the control’s OnCancelEditing method.

You can use CGXControl::IsKindOf to determine the control’s class and compute the return value depending on the control’s runtime-type information.

See Also

 CGXGridCore::GetControl  CGXControl::OnCancelEditing  CGXGridCore::OnCanceledEditing  CGXControl::IsKindOf

CGXGridCore

 Class Overview |  Class Members