-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Referring to my previous post non uniform rowSpans in a grid produces extra column I would like to modify the output so that some rows have no wholly encompassed cell as follows:
col 1 col2 col3 +---------------+---------------+---------------+ Row 1 | | | SSArt 011 | + + +---------------+ Row 2 | | SArt 01 | | <----- Col 3 Row 2 spans 2 rows + + + SSArt 012 + Row 3 | Art 0 | | | <----- Row 3 has no individual cells shown + +---------------+---------------+ Row 4 | | | SSArt 011 | + + SArt 02 +---------------+ Row 5 | | | SSArt 011 | +---------------+---------------+---------------+
When processing row 2 col 3 is given a rowSpan of 2. Then when processing row 3 no row and thus cells are produces by the call to newRow(RowRenderer) from GridDataLoader. But looking at GridDataLoader I see that if the RowRendererExt doesn't produce a row then a row is produced automagically by GridDataLoader. And it appears that since all locations in Row 3 are already occupied the cell produced for row 3 is placed to the right of row 2 thus creating a new column.
I have tried producing a row 3 in the RowRenderer and setting row.setVisable(false). This results in the row text being blank but still displays the space for the row in the 4th column.
I do not see a way to override the row production and just not produce a row #3.
Any suggestions would be appreciated.
Thank you
The link shows a view of our application coded in Swing.
The smallest individual box is a cell as seen in the first 3 rows not counting the headers. The 4th row aligned with 7:15 is the beginning of cells that span more then one row for all three columns. And the 5th row has no individual cells shown.
Asked: 2012-09-29 17:34:39 +0800
Seen: 65 times
Last updated: Sep 29 '12