DXGoogleCalendarSync.ConflictDetected Event

Raises when the DXGoogleCalendarSync component is uncertain whether it should copy Scheduler Appointment data to a corresponding Google Event, or vice versa.

Namespace: DevExpress.XtraScheduler.GoogleCalendar

Assembly: DevExpress.XtraScheduler.v20.2.GoogleCalendar.dll


public event ConflictDetectedEventHandler ConflictDetected
Public Event ConflictDetected As ConflictDetectedEventHandler

Event Data

The ConflictDetected event's data class is ConflictDetectedEventArgs. The following properties provide information specific to this event:

Property Description
Appointment Provides access to a Scheduler Appointment associated with this conflict.
ConflictOperationType Returns the conflict type. Allows you to determine whether the conflict has emerged for a newly created or an edited Event/Appointment.
Event Provides access to a Google Event associated with this conflict.
GoogleEventIsValid Gets or sets whether the DXGoogleCalendarSync should copy a Google Event data into a Scheduler Appointment.


The ConflictDetected event occurs, for instance, when you edit both a Scheduler Appointment and its corresponding Google Event. This produces an ambiguous scenario where it is unclear which of the Event-Appointment objects should be considered "valid". Handle the ConflictDetected event to manually choose this "valid" object.

private void GcSyncComponent_ConflictDetected(object sender, ConflictDetectedEventArgs e) {
    if (
        //implement your condition here 
        //you can read the e.Appointment and e.Event parameters to compare conflicting objects 
        ) {
        e.GoogleEventIsValid = false;
See Also