SetColumnStyleList in Grid - multiline text

Started by Peter2, June 02, 2026, 05:46:05 AM

Previous topic - Next topic

Peter2

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

---
Peter
ODCL 9.1.... German, AutoCAD 2023, Bricscad 26, Win 11

Peter2

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)--
Peter
ODCL 9.1.... German, AutoCAD 2023, Bricscad 26, Win 11