Back to Devexpress

WorksheetDataBindingCollection.BindToDataSource(Object, CellRange) Method

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

latest2.2 KB
Original Source

WorksheetDataBindingCollection.BindToDataSource(Object, CellRange) Method

Binds the worksheet cell range to the specified data source.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
WorksheetDataBinding BindToDataSource(
    object dataSource,
    CellRange range
)
vb
Function BindToDataSource(
    dataSource As Object,
    range As CellRange
) As WorksheetDataBinding

Parameters

NameTypeDescription
dataSourceObject

A data source object whose data should be retrieved into the worksheet.

| | range | CellRange |

A CellRange object specifying the cell range to establish binding, in which the retrieved data will be inserted.

|

Returns

TypeDescription
WorksheetDataBinding

A WorksheetDataBinding object that contains information about the data-bound range.

|

See Also

Data Binding in WinForms Spreadsheet Control

DataBindings

Error

WorksheetDataBindingCollection Interface

WorksheetDataBindingCollection Members

DevExpress.Spreadsheet Namespace