Create and add a DataTable from a DataSource.
Use CreateFileDataSource(String) to create
a DataSource from a file path.
Namespace: Spotfire.Dxp.Data
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax
C#
public DataTable Add( string dataTableName, DataSource dataSource, bool autoCreateFilters )
Parameters
- dataTableName
- Type: SystemString
The name of the data table. - dataSource
- Type: Spotfire.Dxp.DataDataSource
The DataSource to retrieve data from. - autoCreateFilters
- Type: SystemBoolean
If set to true filters are automatically created for all columns in the newly created data table. If set to false filters may be added manually when needed.
Return Value
Type: DataTableThe data table.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Throw if the dataTableName is not a valid name. |
ArgumentException | Thrown if a data table with the given name already exists in the collection. |
ArgumentException | Thrown when the dataSource is null. |
Version Information
Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also