WorksheetDataBindingCollection.CreateDataSource(CellRange) Method
Creates a new data source from the specified cell range.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
WorksheetDataBinding CreateDataSource(
CellRange range
)
#Parameters
Name | Type | Description |
---|---|---|
range | Cell |
A Cell |
#Returns
Type | Description |
---|---|
Worksheet |
A Worksheet |
#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.