I am sorry for this response so late.
I tried your grid and its look nice.
Today I just figure out how to make my subtotals.
Perhaps a lot of people want the aggregate function in grid.
I found a way that i can make a lot of subtotals and i can show them in the bottom of grid or in the top o the grid.
Basicaly I create 2 arrays from my database.
First is with actualy data that I need to show in grid and seccond with my subtotals.
The arrays must be the same in order to concatenate them.
An example is in picture below.
[IMG=http://img543.imageshack.us/img543/6400/69288158.jpg][/IMG]Uploaded with
ImageShack.us