System.Windows.Forms.Binding.BindingComplete Event

Occurs when the Binding.FormattingEnabled property is set to true and a binding operation is complete, such as when data is pushed from the control to the data source or vice versa

Syntax

public event BindingCompleteEventHandler BindingComplete

Remarks

This event is raised under any of the following conditions when Binding.FormattingEnabled is true:

  • Data from the data source is pushed onto the control property.

  • Data from the control property is pushed onto the data source.

This event is raised at the completion of these operations, independent of the completion status. For example, if a binding operation binds a null value to a DateTimePicker.Value property, an exception is thrown, but the Binding.BindingComplete event still occurs. The handler of this event can take the appropriate action, based on the success, error, or exceptions in the binding process, by examining the BindingCompleteEventArgs.BindingCompleteState property of the System.Windows.Forms.BindingCompleteEventArgs parameter.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0