DoUpdateEvent Event
Description
Occurs when event properties are updated in the data source.
Syntax
Public Event DoUpdateEvent( _
ByVal pEvent As CalendarEvent, _
ByRef bResult As Boolean _
)
Parameters
- pEvent (out) — CalendarEvent object which describes all data fields of an event to be used to update the event.
- bResult (in) — Set to True if the event was updated successfully; False if any error occurred during the process.
Remarks
- This event occurs when the Update method is used. The EventChanged event will occur immediately after
DoUpdateEvent. DoUpdateEventoccurs only when a custom data provider is used. This allows the developer to handle and implement a custom update method.
Notes:
- The Custom data providers include the SQLServer, MySql, and Custom providers. Custom data providers operate in an "unbound" mode: all data must be provided to and retrieved from the calendar by the developer.
- All of the "DoXXXX" events (for example, DoCreateEvent) will be fired when using a custom data provider. The developer must implement their own functionality for each event. For example, when an event is created using the CreateEvent method, the DoCreateEvent event is fired. The developer can then add code in
DoCreateEventto add the event to a database or another custom data source. - For all custom data providers the ConnectionString must contain
Provider=custom.
See Also
- CalendarControl Control
- Update Method
- EventChanged Event
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.