SetColumnStyleList in Grid - multiline text

Started by Peter2 · 2026-06-02 12:46 UTC · 1 replies · SMF topic #3003

I have a grid where I want to use "multiline text" with "cellstyle 13".
I create the columns, set them to "13", check them with result 13, check the cell with result -1 (which says cellstyle comes from column).

Everything looks fine, but the result is still a "one - line -text". What could be wrong?

    (dcl-Grid-Clear htp/palette/Datenblatt)

    (dcl-Grid-AddColumns htp/palette/Datenblatt '(("Titel" 0 150) ("Beschreibung" 0 500) ("Steuerelement" 0 150)))
    (dcl-Control-SetColumnStyleList htp/palette/Datenblatt 13 13 13)

    (dcl-Control-GetColumnStyleList htp/palette/Datenblatt)
    (13 13 13)

    (dcl-Grid-GetCellStyle htp/palette/Datenblatt 2 2)
    -1


---
Solved.

I expected that the row height would expand automatically, but I have to set it separately (and all rows have the same height in a grid):

(dcl-Control-SetRowHeight htp/palette/Datenblatt 30)

--