AmericoKutomi Posted May 8, 2020 Share Posted May 8, 2020 My DBGrid has columns with large texts for their titles. Is it possible to wrap texts (break in multiple lines) inside each title column? Link to comment Share on other sites More sharing options...
alfr Posted May 9, 2020 Share Posted May 9, 2020 One option I believe is just to input <br> In the caption where it should break. Link to comment Share on other sites More sharing options...
Sherzod Posted May 9, 2020 Share Posted May 9, 2020 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 More sharing options...
Abaksoft Posted May 9, 2020 Share Posted May 9, 2020 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 Link to comment Share on other sites More sharing options...
Sherzod Posted May 9, 2020 Share Posted May 9, 2020 2 minutes ago, Abaksoft said: You can also set your UniDBGrid1.Colums[x] property : DisplayMemo = True It seems a question about wrapping the text in the column header. Link to comment Share on other sites More sharing options...
Abaksoft Posted May 9, 2020 Share Posted May 9, 2020 Just now, Sherzod said: It seems a question about wrapping the text in the column header. Oh Sorry, I read quickly ! DisplayMemo is for the rows Field.obviously Link to comment Share on other sites More sharing options...
AmericoKutomi Posted May 9, 2020 Author Share Posted May 9, 2020 13 hours ago, alfr said: One option I believe is just to input <br> In the caption where it should break. alft, It worked fine. The solution is very easy and clean. Thank you. Link to comment Share on other sites More sharing options...
AmericoKutomi Posted May 9, 2020 Author Share Posted May 9, 2020 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 More sharing options...
AmericoKutomi Posted May 9, 2020 Author Share Posted May 9, 2020 3 minutes ago, AmericoKutomi said: Sherzod, I will try this, too, because I want to learn more. Thank you, very much. It worked very well! Link to comment Share on other sites More sharing options...
loQsoft Posted April 29, 2022 Share Posted April 29, 2022 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 More sharing options...
Sherzod Posted April 30, 2022 Share Posted April 30, 2022 Hello, Can you make a simple testcase to check? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now