如何在Flex Datagrid中合并单元格? [英] How do you merge cells in a Flex Datagrid?

查看:338
本文介绍了如何在Flex Datagrid中合并单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在数据网格中合并单元格(垂直和/或水平)?至少,例如,有没有办法显示某些datagrid列属于一个组。



例如,我将需要三列:column1,column2,column3 。
所有这三个应该分组到类别单元格,行数为3 - 一个超级标题,如果你愿意的话。



谢谢,让我知道

解决方案

根据Alex Harui,应该创建一个拆分标题:



http://blogs.adobe.com/aharui/2007/03/ thinking_about_item_renderers_1.html



http://blogs.adobe.com/aharui/SplitColumns/dg.swf



同样,不要试图水平合并两个单元格:try将一个单元格分解为两个单元格,并将dataRenderer分配给dataGridColumn。


Is there any way to merge cells (vertically and/or horizontally) in a datagrid? At least, for example, is there a way to show that certain datagridcolumns belong to one group.

For example, I'll take three columns: column1, column2, column3. All these three should be grouped to the Category cell with a rowspan of 3 -- a "super header" if you will.

Thanks, let me know.

解决方案

This should create a Split Header according to Alex Harui:

http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html

http://blogs.adobe.com/aharui/SplitColumns/dg.swf

Similarly, instead of trying to merge two cells horizontally: try splitting one cell into two cells using and itemRenderer for the dataGridColumn.

这篇关于如何在Flex Datagrid中合并单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆