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

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

问题描述

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

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.

例如,我将采用三列:column1、column2、column3.所有这三个都应分组到行跨度为 3 的类别单元格中——如果您愿意,可以成为超级标题".

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.

谢谢,让我知道.

推荐答案

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

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

同样,不要尝试水平合并两个单元格:尝试使用 dataGridColumn 的 itemRenderer 将一个单元格拆分为两个单元格.

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天全站免登陆