AlignBottomDataGridItemRenderer

Recently we were required to align the text in a DataGrid’s header at the bottom. Here’s the result.

AlignBottomDataGridItemRenderer

This works by roughly calculating how many spare lines there would be in the TextField when its size is set, and then adding blank lines to force the text to the bottom. It should work in most cases, although if there are lots of lines of text it may begin to add too many blank lines.

The source for the example is available on right-click, but the source for the renderer is in our Google Code Library.

Leave a Reply