BeforeAddDataBoundRowEventArgs Interface
Provides data for the BeforeAddDataBoundRow event.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
The BeforeAddDataBoundRow event occurs before a new row is added to a data source that is bound to a ListObject.
The following code example creates a DataTable and a ListObject, and binds the ListObject to the DataTable. It then creates a BeforeAddDataBoundRow event handler that cancels the addition of the new row. To test the event, manually add a new row to the ListObject on sheet 1.
This example is for a document-level customization.
Show:
