Leaves editing mode without making any changes.
Remarks
Property specifies the state of the CancelEdit button on the control. CancelEdit button terminates the edit session for the control. Control returns to normal mode without saving any changes. This means that no statement is executed on button click. Any changes done are lost and previous data is displayed.
CancelEdit button becomes active at the moment the control enters edit mode. The button can be displayed in the control’s navigator or it is accessible through the menus on the ribbon. Both options at the same time are also possible.
Several different states are available for the button. States determine the appearance and the behaviour of the button. To learn more about the states see chapter Navigation Button States.
Example (MxSpace)
To see the defined CancelEdit property on a control (GridEdit) open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click WorkOrderManagePart.cs. Click the GridEdit control for displaying work orders and open Property Window. See the value Default defined in CancelEdit property.
To define CancelEdit property
- In Solution Explorer open MxPart component (WorkOrderManagePart) which contains the control (GridEdit).
- Select the desired control (GridEdit) on the canvas.
- Open Property Window
- In section EditorNavigation in CancelEdit property select the desired value (Default).
MxPart
EndEdit