# Grid with headers and cols-spanned

Hi,

we need a grid with 2 lines of col-headings (no problem with NUM-COL-HEADINGS) but the cells of the first line should span over 3 cols of the second and all other lines of the grid.

Is this possible ? If so, please tell us how.

If not, how would you solve this problem ?

Parents
• Then you must use the 2grid Solution.

you can inquire the columns size after resizing and take the new values for the other grid.

same for the Scrolling Position.

inquire the column size give only the value from the current "cell". For adjusting you have to compute the complete grid with all the values... example:

move 1 to artgrid-col(1).

perform varying idx from 1 by 1 until idx > 31

compute idx2 = idx 1 end-compute

compute artgrid-col(idx2) =

artgrid-col(idx)

artgrid-pdis(idx)

end-compute

end-perform.

modify data-grid

display-columns ( artgrid-col(1)

artgrid-col(2)

artgrid-col(3)

artgrid-col(4)

artgrid-col(5)

artgrid-col(6)

artgrid-col(7)

artgrid-col(8)

artgrid-col(9)

artgrid-col(10)

artgrid-col(11)

artgrid-col(12)

artgrid-col(13)

artgrid-col(14)

artgrid-col(15)

artgrid-col(16)

artgrid-col(17)

artgrid-col(18)

artgrid-col(19)

artgrid-col(20)

artgrid-col(21)

artgrid-col(22)

artgrid-col(23)

artgrid-col(24)

artgrid-col(25)

artgrid-col(26)

artgrid-col(27)

artgrid-col(28)

artgrid-col(29)

artgrid-col(30)

artgrid-col(31)

artgrid-col(32)

).

• Then you must use the 2grid Solution.

you can inquire the columns size after resizing and take the new values for the other grid.

same for the Scrolling Position.

inquire the column size give only the value from the current "cell". For adjusting you have to compute the complete grid with all the values... example:

move 1 to artgrid-col(1).

perform varying idx from 1 by 1 until idx > 31

compute idx2 = idx 1 end-compute

compute artgrid-col(idx2) =

artgrid-col(idx)

artgrid-pdis(idx)

end-compute

end-perform.

modify data-grid

display-columns ( artgrid-col(1)

artgrid-col(2)

artgrid-col(3)

artgrid-col(4)

artgrid-col(5)

artgrid-col(6)

artgrid-col(7)

artgrid-col(8)

artgrid-col(9)

artgrid-col(10)

artgrid-col(11)

artgrid-col(12)

artgrid-col(13)

artgrid-col(14)

artgrid-col(15)

artgrid-col(16)

artgrid-col(17)

artgrid-col(18)

artgrid-col(19)

artgrid-col(20)

artgrid-col(21)

artgrid-col(22)

artgrid-col(23)

artgrid-col(24)

artgrid-col(25)

artgrid-col(26)

artgrid-col(27)

artgrid-col(28)

artgrid-col(29)

artgrid-col(30)

artgrid-col(31)

artgrid-col(32)

).

Children
No Data