Jump to content

(solved) Long text on column title in DBGrid - How to wrap it?


AmericoKutomi

Recommended Posts

16 hours ago, AmericoKutomi said:

Is it possible to wrap texts (break in multiple lines) inside each title column?

You can try to use this CustomCSS:

.x-column-header-inner .x-column-header-text {
    white-space: normal;
    text-align: center;
}

 

Link to comment
Share on other sites

16 hours ago, AmericoKutomi said:

My DBGrid has columns with large texts for their titles.

Is it possible to wrap texts (break in multiple lines) inside each title column?

 

 

You can also set your UniDBGrid1.Colums[x]  property :   DisplayMemo = True

 

Multi_Lines.png

Link to comment
Share on other sites

  • AmericoKutomi changed the title to (solved) Long text on column title in DBGrid - How to wrap it?
  • 1 year later...

Hello @Sherzod

I used your suggestion. about wrap text at the memo field . (uniDBGrid)
But it didn't work!
Well, why might that be?

Best Regard,

Delphi 10.2

uniGUI : 1.90.0.1550

.x-column-header-inner .x-column-header-text {
    white-space: normal;
    text-align: center;
}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...