Footer for the AdvancedDataGrid (2)

The previous article on this subject showed a simple solution for a footer on the AdvancedDataGrid. It has evolved in a better solution. This time it also supports having different columns for the footer. So it is possible to use different renderers for the grid and the footer.

The basic idea is still the same: two datagrids are used. One grid will be the regular grid with the rows and the header. The other grid will be used for the footer and it will contain only one row without headers. This sample will be able to handle:

This sample has 3 columns. The third column in the grid is the sum of column a and column b. The total of all the sum columns is displayed in the footer. Just change some of the values, move a column or resize a column and you will see it actually works.

Read more