How do you merge cells in a Flex Datagrid?

后端 未结 3 1166
终归单人心
终归单人心 2021-01-19 21:57

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 grou

相关标签:
3条回答
  • 2021-01-19 22:47

    I have found that a free MecGrid component solves this merging cells problem (it includes other cool features). But this custom component also misses a lot of other features found in standard FlexComponents.

    http://code.google.com/p/flexspreadsheet/

    0 讨论(0)
  • 2021-01-19 22:53

    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.

    0 讨论(0)
  • 2021-01-19 23:04

    AFAIK, no. Let someone correct me, but I've gone through the trouble to write my own table control to get around this. The Grid has the span concept though.

    That is, I mean horizontal grouping. The AdvancedDataGrid supports row-grouping, but I've never used it so I can't go into specific examples.

    0 讨论(0)
提交回复
热议问题