Flex datagrid列标题的不同字体和相应单元格中的文本

时间:2009-08-04 16:26:57

标签: flex datagrid fonts

For a flex datagrid : 

How do I have different fonts for a column header
and the text in the corresponding cells?

1 个答案:

答案 0 :(得分:0)

Here is one workaround : 


<mx:DataGridColumn headerText="colHeader" dataField="marHD" width="100" editable="false" fontFamily="Arial" rendererIsEditor="true" editorDataField="text">
        <mx:itemRenderer>
            <mx:Component>
                   <mx:Text fontFamily="myfontfamily"/>
            </mx:Component>
            </mx:itemRenderer>
    </mx:DataGridColumn>