ListObject::DataBindingFailure Event

 

Occurs when a condition causes the data binding of a ListObject control to fail.

Namespace:   Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

event EventHandler^ DataBindingFailure {
	void add(EventHandler^ value);
	void remove(EventHandler^ value);
}

An example of a condition that causes failure is if a user drops a ListObject control onto another ListObject control that is already in the drop location. The new control's data binding fails and the control raises this event.

The following code example creates a ListObject and adds an event handler for the DataBindingFailure event. If list1 is bound to a data source and then the binding fails, the event is caught and a message appears showing the state of the binding.

This version is for a document-level customization.

No code example is currently available or this language may not be supported.

This version is for an application-level add-in.

No code example is currently available or this language may not be supported.
Return to top
Show: