如何将 Flex MXML DataGrid 变成水平 DataGrid 之类的东西? (见图片)
从此(普通数据网格)
(来源:narod.ru)
进入此(水平数据网格)
如何将 Flex MXML DataGrid 变成类似 Horisontal DataGrid 的东西? (Flash builder 4 可能是这样的?)
保留 DataGrid 的所有内容,例如从数据提供者中获取数据排序、拖放项目等
from this (normal dataGrid)
(source: narod.ru)
into this (horisontal data grid)
How to turn Flex MXML DataGrid into something like Horisontal DataGrid? (may be some how with Flash builder 4?)
Keeping all stuff DataGrid has like eating data from data provider sortind dragging - droping items etc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好问题。我自己也尝试过这样做。
我的建议是使用 DataGrid:
关闭标题,
并使数据网格的第一列使用 itemRenderers,其中第一列的 itemRenderer 渲染与标题相同的渐变渲染(您可以查看 DataGridHeaderBackgroundSkin.as 类以了解您需要哪种渲染代码)。
但我不确定如何突出显示每列。
谢谢,请告诉我这是否有帮助!
Good question. I have tried to do this myself.
My suggestion is to use DataGrid:
Turn off headers,
and make the first column of your datagrid use itemRenderers, where the itemRenderer for the first column renders the same gradient rendering as the headers (you can look at the DataGridHeaderBackgroundSkin.as class to see what kind of rendering code you need).
I'm not sure how to do the highlighting per column though.
Thanks, let me know if this helps!