Skip to main content

DataBindingWarningEventArgs.WarningType Property

Gets the type of the data binding warning dialog to be invoked.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.Spreadsheet.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public DataBindingWarningType WarningType { get; }

Property Value

Type Description
DataBindingWarningType

A DataBindingWarningType enumeration value.

Available values:

Show 16 items
Name Description
ReadOnlyDataSourceField

Specifies the data binding warning dialog with the following message: “A cell range you’re trying to modify is bound to the read-only data source field.”

NonEditableDataSource

Specifies the data binding warning dialog with the following message: “A cell range you’re trying to modify is bound to a data source that does not allow edit operations.”

CannotSortBindingRange

Specifies the data binding warning dialog with the following message: “Cannot sort the selected data. It belongs to a data source range for which sorting is not allowed.”

CannotAddOrRemoveColumns

Specifies the data binding warning dialog with the following message: “Cannot add/remove a column to/from a data source range.”

CannotInsertRows

Specifies the data binding warning dialog with the following message: “Cannot add a row(s) to a data source range.”

CannotRemoveRows

Specifies the data binding warning dialog with the following message: “Cannot remove a row(s) from a data source range.”

CannotDeleteTheOnlyRow

Specifies the data binding warning dialog with the following message: “Cannot remove all rows from a data source range. It must contain at least one row.”

CannotModifyFormulas

Specifies the data binding warning dialog with the following message: “Cannot change data in the selected cell range. It contains formulas that belong to a data source range and cannot be modified.”

CannotMergeCells

Specifies the data binding warning dialog with the following message: “Cannot merge cells that belong to a data source range.”

SortedRangeDoesNotContainAllColumns

Specifies the data binding warning dialog with the following message: “The specified cell range cannot be sorted since it does not contain all columns of the data-bound range.”

TableWithMultipleDataBindings

Specifies the data binding warning dialog with the following message: “A table cannot contain multiple data bindings.”

MissingTableHeader

Specifies the data binding warning dialog with the following message: “The table must have a header because the binding range has a header.”

TableAndDataSourceRowCountMismatch

Specifies the data binding warning dialog with the following message: “The number of rows in the table and in the data source do not match.”

TableAndDataSourceColumnCountMismatch

Specifies the data binding warning dialog with the following message: “The number of columns in the table is less than the number of columns in the data source.”

BindingRangeHasNoHeader

Specifies the data binding warning dialog with the following message: “The binding range has no header. Extend the range to include a top row which will be the table header.”

CannotMoveRangeToOtherSheet

Specifies the data binding warning dialog with the following message: “The selected cell range is associated with a data source and cannot be moved to another worksheet.”

See Also