Frederick Posted October 23, 2019 Share Posted October 23, 2019 I have the following records in a SQLite database:- Category Sub-Category 1 Sub-Category 2 When the records are loaded into a TUniDBGrid, the records are displayed as:- Category Sub-Category 1 Sub-Category 2 What happened to the prefix spaces for the sub-category descriptions? It doesn't matter if the columns are defined as CHAR() or VARCHAR(). -- Frederick (UniGUI Complete - Professional Edition 1.90.0.1511) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 23, 2019 Share Posted October 23, 2019 32 minutes ago, Frederick said: What happened to the prefix spaces for the sub-category descriptions? It doesn't matter if the columns are defined as CHAR() or VARCHAR(). https://www.w3schools.com/html/html_entities.asp https://developer.mozilla.org/en-US/docs/Web/CSS/white-space You can try this approach...: 1. CustomCSS: .gridWSpaces .x-grid-cell-inner { white-space: break-spaces; } 2. YourDBGrid -> LayoutConfig -> Cls = gridWSpaces Quote Link to comment Share on other sites More sharing options...
Frederick Posted October 23, 2019 Author Share Posted October 23, 2019 Thank you for the links and the fix. The CSS code allowed the prefixed spaces to be displayed. Quote Link to comment Share on other sites More sharing options...
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.