Add a new calculated column.
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 DataColumn AddCalculatedColumn( string name, string expression )
Parameters
- name
- Type: SystemString
The name of the calculated column. - expression
- Type: SystemString
The expression describing how the calculated column should be calculated.
Return Value
Type: DataColumnThe newly created calculated column.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown if the name of the column is not valid or already exists in the collection. |
ExpressionException | Thrown if the expression is not valid. |
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