officefileapi-devexpress-dot-spreadsheet-dot-worksheetdatabindingcollection-dot-remove-x28-system-dot-object-x29.md
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
void Remove(
object dataSource
)
Sub Remove(
dataSource As Object
)
| Name | Type | Description |
|---|---|---|
| dataSource | Object |
An object specifying the data source associated with the WorksheetDataBinding object to be removed.
|
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.
// Remove all data bindings bound to the specified data source.
sheet.DataBindings.Remove(weatherDatasource);
spreadsheet-document-api-data-binding/CS/SpreadsheetApiDataBinding/Program.cs#L63
// Remove all data bindings bound to the specified data source.
worksheet.DataBindings.Remove(weatherDatasource);
' Remove all data bindings bound to the specified data source.
sheet.DataBindings.Remove(weatherDatasource)
spreadsheet-document-api-data-binding/VB/SpreadsheetApiDataBinding/Program.vb#L56
' Remove all data bindings bound to the specified data source.
worksheet.DataBindings.Remove(weatherDatasource)
See Also
WorksheetDataBindingCollection Interface