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

5 hours ago, Sherzod said:

You can try to use this CustomCSS:


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

 

Sherzod,

I will try this, too, because I want to learn more.

Thank you, very much.

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...