Flex DataGrid,行组标题

时间:2009-10-27 20:29:19

标签: flex actionscript-3 custom-component

我正在尝试扩展DataGrid以允许不同行组的标头。但是,我无法弄清楚从DataGrid扩展哪种方法可以实现这一目标。

我不希望标题包含在dataProvider中,只包含行。我想指定索引以使用自定义数据网格的属性插入标题。

这是一个快速的Photoshop,展示了我想要做的事情: Example http://www.maclema.com/groupheaders.png

是否已经构建了可以执行此操作的自定义组件?

如果没有,有人知道我会怎么做吗?

谢谢,

马特

2 个答案:

答案 0 :(得分:1)

您可能想要查看此组件: http://code.google.com/p/flex-spreadsheet/

答案 1 :(得分:1)

我刚刚发现此类问题的另一个解决方案是以下

这是演示:
http://blogs.adobe.com/aharui/SplitColumns/dg.swf

这里是讨论:
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html