Not yet rated

Problem

How do I customize the appearance of a Spark DataGrid?

Solution

Create custom item renderers to control the display of the cells of the Spark DataGrid control. You can also create custom item renderers for the header cells of each column of the grid.

Detailed explanation

You set a custom renderer or editor for each column of the grid. Use the GridColumn.itemRenderer, GridColumn.itemEditor, and GridColumn.headerRenderer properties to specify your custom renderer or editor.

You typically create custom item renderers and item editors in MXML. However, for the highest performance, create them in ActionScript.

You can see complete examples here: http://help.adobe.com/en_US/flex/using/WS0ab2a460655f2dc3-427f401412c60d04dca-7ff3.html


+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes