正如标题所说,我如何在Flex Spark DataGrid中关闭水平和垂直网格线?
答案 0 :(得分:7)
基于spark数据网格外观创建一个新外观,如果使用Flash构建器,可以使用New>轻松完成。 MXML Skin,如果不是,你可以在sdks \ 4.5.1 \ frameworks \ projects \ spark \ src \ spark \ skins \ spark
下找到DataGridSkin.mxml文件制作此皮肤的副本,为了使水平和垂直网格线消失,您必须删除这些组件
<fx:Component id="columnSeparator">
<s:Line>
<s:stroke>
<s:SolidColorStroke color="0xE6E6E6" weight="1" caps="square"/>
</s:stroke>
</s:Line>
</fx:Component>
和
<fx:Component id="rowSeparator">
<s:Line>
<s:stroke>
<s:SolidColorStroke color="0xE6E6E6" weight="1" caps="square"/>
</s:stroke>
</s:Line>
</fx:Component>
之后,不要忘记将datagrid外观设置为此外观
skinClass="path.to.skin.CustomSkin"
答案 1 :(得分:0)
根据原始皮肤创建新皮肤并根据自己的喜好进行编辑。