Skip to main content
A newer version of this page is available.
All docs
V18.2
Row

WorksheetDataBindingCollection.CreateDataSource(Range, RangeDataSourceOptions) Method

Creates a new data source from the cell range.

Namespace: DevExpress.Spreadsheet

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

Declaration

WorksheetDataBinding CreateDataSource(
    Range range,
    RangeDataSourceOptions options
)

Parameters

Name Type Description
range Range

A Range that is the cell range used as the data source.

options RangeDataSourceOptions

A RangeDataSourceOptions object containing the data source options.

Returns

Type Description
WorksheetDataBinding

A WorksheetDataBinding object that contains information about the data source range.

Remarks

To use the returned WorksheetDataBinding instance as the data source, access its WorksheetDataBinding.DataSource property.

Another method that creates the data source from a worksheet range is the Range.GetDataSource method. It is equivalent to the CreateDataSource method, but operates with the Range instance.

See Also