AmericoKutomi Posted May 8, 2020 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? Quote
alfr Posted May 9, 2020 Posted May 9, 2020 One option I believe is just to input <br> In the caption where it should break. Quote
Sherzod Posted May 9, 2020 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; } 1 Quote
Abaksoft Posted May 9, 2020 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 Quote
Sherzod Posted May 9, 2020 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. Quote
Abaksoft Posted May 9, 2020 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 Quote
AmericoKutomi Posted May 9, 2020 Author 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. Quote
AmericoKutomi Posted May 9, 2020 Author 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. Quote
AmericoKutomi Posted May 9, 2020 Author 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! Quote
loQsoft Posted April 29, 2022 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; } Quote
Sherzod Posted April 30, 2022 Posted April 30, 2022 Hello, Can you make a simple testcase to check? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.