Back to Devexpress

TableCollection.Add(Object, Int32, Int32, ExternalDataSourceOptions) Method

officefileapi-devexpress-dot-spreadsheet-dot-tablecollection-dot-add-x28-system-dot-object-system-dot-int32-system-dot-int32-devexpress-dot-spreadsheet-dot-externaldatasourceoptions-x29.md

latest2.9 KB
Original Source

TableCollection.Add(Object, Int32, Int32, ExternalDataSourceOptions) Method

Creates a table starting from the specified row and column, adds it to the collection and binds it to the data source using the specified options.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
Table Add(
    object dataSource,
    int rowIndex,
    int columnIndex,
    ExternalDataSourceOptions options
)
vb
Function Add(
    dataSource As Object,
    rowIndex As Integer,
    columnIndex As Integer,
    options As ExternalDataSourceOptions
) As Table

Parameters

NameTypeDescription
dataSourceObject

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

| | rowIndex | Int32 |

An integer that is the row index of the top left cell in the worksheet table.

| | columnIndex | Int32 |

An integer that is the column index of the top left cell in the worksheet table.

| | options | ExternalDataSourceOptions |

An ExternalDataSourceOptions object that contains options used to establish binding.

|

Returns

TypeDescription
Table

A Table object that is the newly created table.

|

See Also

Data Binding in WinForms Spreadsheet Control

Table

WorksheetTableDataBinding

DataBindings

Error

BindTableToDataSource

TableCollection Interface

TableCollection Members

DevExpress.Spreadsheet Namespace