Scheduler for UWP | ComponentOne
C1.Xaml.Schedule Namespace / C1Scheduler Class / DataSourceItemSynchronized Event

In This Topic
    DataSourceItemSynchronized Event
    In This Topic
    Occurs when changes made to one of the DataStorage collections (for example, to C1.C1Schedule.AppointmentStorage.Appointments) has been fully reflected in the storage underlying data source.
    Syntax
    'Declaration
     
    
    <C1DescriptionAttribute("C1Scheduler.DataSourceItemSynchronized", "Occurs when changes made to one of the DataStorage collections has been fully reflected in the storage underlying data source.")>
    <C1CategoryAttribute("Data")>
    Public Event DataSourceItemSynchronized As DataSourceItemSynchronizedEventHandler
    [C1Description("C1Scheduler.DataSourceItemSynchronized", "Occurs when changes made to one of the DataStorage collections has been fully reflected in the storage underlying data source.")]
    [C1Category("Data")]
    public event DataSourceItemSynchronizedEventHandler DataSourceItemSynchronized
    Event Data

    The event handler receives an argument of type ItemSynchronizedEventArgs containing data related to this event. The following ItemSynchronizedEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets the SynchronizationActionEnum value.  
    Gets the reference to the BasePersistableObject derived object.  
    Gets the reference to the data source item.  
    Gets the reference to the changed C1BindingSource object.  
    Remarks
    If properties of an item of the DataStorage collection are changed between BeginEdit and EndEdit calls performed on the item, this event will not be raised until the EndEdit method will be called.

    Use this event if you want to update a back store of your data source only after the changes to a corresponding collection have been fully completed. For example, if you use ADO.NET DataSet as a data source, you can commit the changes made in a DataRow as a result of changes in the collection item to the underlying database.

    See Also