CGXGridCore::OnEndEditing
virtual BOOL OnEndEditing(ROWCOL nRow, ROWCOL nCol);?
nRow
Specifies the row id.
nCol
Specifies the column id.
Return Value
TRUE if the cell’s data can be deleted; FALSE to prevent deletion.
Remarks
Overridable method which is called when the user confirmed the contents of the current cell. The method is called from CGXControl::OnEndEditing.
You can either override OnEndEditing for all controls or (C++) subclass a specific control and override the control’s OnEndEditing 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.
To determine the text of the current cell you should call
CString s;
GetCurrentCellControl( )->GetCurrentText(s);
See Also
CGXGridCore::GetControl CGXControl::OnEndEditing CGXControl::IsKindOf CGXControl::GetCurrentText