Similar to constraint expressions (see Row and Column Level Constraints for more information), calculation expressions defined through the C1ViewColumn.CalculationExpression property are treated as the code of some class method. It returns a value of a type appropriate to a column data type and it is expressed in a specified .NET Framework programming language. Such a class has the following members which can be used in the calculation:
Members | Description |
---|---|
row |
References a row on which column calculation is performed. If the expression is defined for a C1DataView the data type is C1ViewRow. If the expression is defined for a DataColumn the data type is type System.Data.DataRow. |
column |
References a column on which the value is calculated. If the expression is defined for a C1ViewColumn the data type is C1ViewColumn. If the expression is defined for a DataColumn in DataSetExtender the data type is System.Data.DataColumn. |
baseValue |
Contains the value before the calculation is applied which is the base value of a column. |
In general, when a C1ViewColumn value in a certain C1ViewRow is being retrieved, the following chain of column value transformations occurs: