Summary in GridCube

Has someone an example for a Summary row for a CubeGrid?

Is it possible to have user defined summary function for a CubeGrid?