ErrorAddDataBoundRowEventHandler Delegate

 

Represents the method that handles an ErrorAddDataBoundRow event.

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

public delegate void ErrorAddDataBoundRowEventHandler(
	Object^ sender,
	ErrorAddDataBoundRowEventArgs^ e
)

Parameters

sender
Type: System::Object^

The source of the event.

e
Type: Microsoft.Office.Tools.Excel::ErrorAddDataBoundRowEventArgs^

An ErrorAddDataBoundRowEventArgs that contains the event data.

When you create an ErrorAddDataBoundRowEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler method is called whenever the event occurs unless you remove the delegate.

The following code example creates a DataTable and a ListObject, and binds the ListObject to the DataTable. It then creates an ErrorAddDataBoundRow event handler. To test the event, manually add a new row to the ListObject and enter the last name "Chan" and a first name. The event handler displays a message.

This example is for a document-level customization.

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