Objective Grid: OnEndEdit() called even when no editing has occurred

Article ID: 519
Last updated: 16 Apr, 2018
Article ID: 519
Last updated: 16 Apr, 2018
Revision: 3
Views: 2095
Posted: 23 Jan, 2001
by Meltreger B.
Updated: 16 Apr, 2018
by Meltreger B.

Problem


Is there a reason why OnEndEdit() is called even though the cell neither has been edited nor has gone into "edit mode"?


Cause



Action


We call OnEndEditing() because there should be also notification for cells which cannot be set active, e.g. checkboxes.

You can call pControl->GetModify() to check if the cell was modified.

You might also override OnValidateCell(). This gets only called when the cell is modified (but before the cell is stored whereas OnEndEditing() is called after the cell content is stored in the grid).

This article was:   Helpful | Not helpful
Report an issue
Article ID: 519
Last updated: 16 Apr, 2018
Revision: 3
Views: 2095
Posted: 23 Jan, 2001 by Meltreger B.
Updated: 16 Apr, 2018 by Meltreger B.

Others in this category