Skip to main content

TcxCustomDataController.IsItemExpression(Integer) Method

Identifies if the specified data item corresponds to a calculated column or row in a container control.

Declaration

function IsItemExpression(AItemIndex: Integer): Boolean;

Parameters

Name Type
AItemIndex Integer

Returns

Type
Boolean

Remarks

Call this function and pass a required data item’s index as the AItemIndex parameter. The function returns True only if the following conditions are met:

  • The target data item has an assigned expression (that is, the ItemExpressions property does not return an empty string for the same data item index).

  • The target data item has an assigned value type.

  • The data controller (a TcxCustomDataController class descendant) supports calculated fields.

  • The target data item does not have a bound dataset field (this condition applies only to the Bound data loading mode).

Otherwise, the IsItemExpression function returns False.

See Also