FailureReason Enumeration

Provides the reason why the ListObject data binding failed.

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

Syntax

'Declaration
Public Enumeration FailureReason
public enum FailureReason

Members

Member name Description
CouldNotResizeListObject The ListObject could not be resized to make room for all of the data to be displayed.
InvalidDataSource The data source specified is not valid.
NoDataBoundColumnsSpecified At least one of the columns specified must map to the DataTable.

Remarks

If the SetDataBinding method on the ListObject is unable to perform the data binding, a SetDataBindingFailedException exception is raised. The Reason property of this exception contains data about why the data binding failed.

See Also

Reference

Microsoft.Office.Tools.Excel Namespace