Adobe Flex: Change Style Of Header Text In DataGrid

There is no direct way to set a DataGrid column’s header text to, say, change its font type (bold, italic, etc) or even its alignment. You would have to use a bit of CSS and place it within the tag of your MXML file.

For example, to set a header text’s font type to bold and text alignment to center, use the following code below

and then, within the DataGridColumn’s property headerStyleName, assign the .centerbold style to it.

Related Posts Plugin for WordPress, Blogger...

Leave a Reply

Your email address will not be published. Required fields are marked *