C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class > FinishEditing Method : FinishEditing(Boolean) Method |
'Usage
Dim instance As C1FlexGridBase Dim cancel As Boolean Dim value As Boolean value = instance.FinishEditing(cancel)
If the cancel parameter is set to false, the grid tries to apply the edits, and fires the ValidateEdit, LeaveEdit, and AfterEdit events as usual. If validation fails, the grid stays in edit mode (and FinishEditing returns false).
If the cancel parameter is set to true, the original cell value is restored and the grid is guaranteed to leave the edit mode. In this case, only the LeaveEdit event fires.
To determine whether the grid is in edit mode, check whether the Editor property is null.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2