Define Grid-function fields

A grid-function field is a new field whose values are computed

Note that when a function can be computed at the extraction time, it is always better to define it within the Data Source, thus avoiding the definition of a grid function. Also note that there is a big conceptual difference between aggregate functions and grid functions. The aggregate functions are computed by record aggregation, while the Grid functions are computed

Writing a function is very simple, especially if you are already a VB.NET programmer. You just need to remember that

When you define a Grid-function field, you have to imagine a new field and an iteration on the cells of this new field. On each cell the cell value will be computed according to the code you provide.

Here is your new Grid-function field:

On grid function you can define (possibly multiple) totals. Total can be defined in several ways:

1.1 Using Predefinite aggregate function

1.2 Using Custom aggregate functions (you provide the source code)

The predefinite aggregate functions contains several possibility. The most common is clearly the

If you feel some predefinite functions are missing please, ask: there will be readily added for you.

Using a

This is less common scenario. It is however envisioned, for maximum generality. In such case the total is obtained through the computation of a grid function, where the code is provided by the user.