Back to Devexpress

WorksheetDataBindingCollection.Remove(Object) Method

officefileapi-devexpress-dot-spreadsheet-dot-worksheetdatabindingcollection-dot-remove-x28-system-dot-object-x29.md

latest4.1 KB
Original Source

WorksheetDataBindingCollection.Remove(Object) Method

Removes the WorksheetDataBinding object associated with the specified data source from the collection.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void Remove(
    object dataSource
)
vb
Sub Remove(
    dataSource As Object
)

Parameters

NameTypeDescription
dataSourceObject

An object specifying the data source associated with the WorksheetDataBinding object to be removed.

|

Remarks

To remove the WorksheetDataBinding object at the specified index in the collection, use the WorksheetDataBindingCollection.RemoveAt method. To remove all WorksheetDataBinding objects from the collection at once, use the WorksheetDataBindingCollection.Clear method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Remove(Object) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-bind-a-worksheet-to-a-generic-list-or-a-bindinglist-data-source/CS/DataBindingToListExample/Form1.cs#L66

csharp
// Remove all data bindings bound to the specified data source.
sheet.DataBindings.Remove(weatherDatasource);

spreadsheet-document-api-data-binding/CS/SpreadsheetApiDataBinding/Program.cs#L63

csharp
// Remove all data bindings bound to the specified data source.
worksheet.DataBindings.Remove(weatherDatasource);

how-to-bind-a-worksheet-to-a-generic-list-or-a-bindinglist-data-source/VB/DataBindingToListExample/Form1.vb#L69

vb
' Remove all data bindings bound to the specified data source.
sheet.DataBindings.Remove(weatherDatasource)

spreadsheet-document-api-data-binding/VB/SpreadsheetApiDataBinding/Program.vb#L56

vb
' Remove all data bindings bound to the specified data source.
worksheet.DataBindings.Remove(weatherDatasource)

See Also

WorksheetDataBindingCollection Interface

WorksheetDataBindingCollection Members

DevExpress.Spreadsheet Namespace