Customizing the header of datagrid in Flex 4.5 is really easy. We just need to copy the codes from ‘DefaultGridHeaderRenderer’ into a custom renderer class, tweak a few fields and voila – we can get a customizable datagrid like the application below (right click on application for source). In this application, one can change the header text alignment, the background color of header and also hide the header. The header text here by default is 2 lines. We can customize it easily to build a multiline header datagrid.