Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WorksheetDataBindingCollection.CreateDataSource(CellRange, RangeDataSourceOptions) Method

Creates a new data source from the cell range.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

WorksheetDataBinding CreateDataSource(
    CellRange range,
    RangeDataSourceOptions options
)

#Parameters

Name Type Description
range CellRange

A CellRange 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 CellRange.GetDataSource method. It is equivalent to the CreateDataSource method, but operates with the CellRange instance.

See Also