Add a new calculated column.
Namespace: Spotfire.Dxp.Data
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 25.11.10401.3615 (25.11.10401.3615)
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
See Also