灵活的自定义数据网格 [英] flex custom datagrid
本文介绍了灵活的自定义数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨.
我正在使用 this 扩展flex datagrid,并使用此i可以更改datagrid行的背景颜色,现在我想更改行和标题的字体样式/大小/颜色等.
我该怎么办?
谢谢.
Hi.
i am extending flex datagrid using this , with this i can change background color for datagrid row,now i want to change font style/size/color etc. for rows and for header.
how can i do this?
thanks.
推荐答案
datagrid是DataGrid的对象.
datagrid.setStyle("color",#000000");
datagrid.setStyle("fontFamily","Verdana");
datagrid.setStyle("fontSize","11");
访问以下链接
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html
datagrid is the Object of DataGrid.
datagrid.setStyle("color","#000000");
datagrid.setStyle("fontFamily","Verdana");
datagrid.setStyle("fontSize","11");
visit the following Link
http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html
您是否尝试过询问您引用的博客文章的作者?
Have you tried asking the author of the blog post you referenced?
这篇关于灵活的自定义数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文