Version

CancelEdit(ActivityBase,DataErrorInfo) Method

Cancels modifications to an existing activity or cancels a new activity that was created by the CreateNew call however one that hasn't been committed yet.
Syntax
'Declaration
 
Protected Friend Overloads Overrides Function CancelEdit( _
   ByVal activity As Infragistics.Controls.Schedules.ActivityBase, _
   ByRef errorInfo As Infragistics.DataErrorInfo _
) As Boolean
protected internal override bool CancelEdit( 
   Infragistics.Controls.Schedules.ActivityBase activity,
   out Infragistics.DataErrorInfo errorInfo
)

Parameters

activity
ActivityBase derived object that was put in edit state by BeginEdit(ActivityBase,DataErrorInfo) call or one that was created using CreateNew method however one that hasn't been committed yet.
errorInfo
If there's an error this will be set to a new DataErrorInfo object with the error information.

Return Value

True to indicate that the operation was successful, False otherwise.
Remarks

Note: CancelEdit method is called by the Infragistics.Controls.Schedules.XamScheduleDataManager to cancel modifications to an existing activity. It also calls this method to cancel and discard a new activity that was created using the CreateNew method, however the activity must not have been committed yet. This is typically done when the user cancels the dialog for creating a new activity, like the new appointment dialog.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also