Jump to content

How can I make unidbgrid word wrap?


loQsoft

Recommended Posts

3 hours ago, loQsoft said:

 

How can I make unidbgrid word wrap? 

THANK FOR YOUR HELPS,

do not work for me, maybe, i do something wrong!

Delphi 10.2

unigui :1.90.0.1550

2021-08-21_03-12-50.png

Hello, I use HTML in SQL query like this:

SELECT

('<H3>'+ Products."Name" + '</H3>' 
        +  CASE 
            WHEN CONVERT (varchar (250)
                , STUFF (
                        (SELECT CHAR (10) + '|||' + REPLACE (ParamName,'-','') + CHAR (10) + ParamValue
                        FROM SomeDataArt
                        WHERE SomeDataArt."ID_Art"=Products."ID"
                FOR XML Path ('')),1,1,'')) <> ''
            THEN '<h4>' 
                + REPLACE (CONVERT (varchar (250)
                , STUFF (    (SELECT  CHAR (10) + '|||' + REPLACE (ParamName,'-','') + CHAR (10) + ParamValue 
                        FROM SomeDataArt
                        WHERE SomeDataArt."ID_Art"=Products."ID"
                FOR XML Path ('')),1,1,''))
                ,'|||','</br>')
                + '</h4>'

            ELSE ''
            END
        + '<ul><ul><h4 align="right">Price: '
        + CAST (ROUND (Products."Price",2) as varchar (20))
        + ', ' + lower (Products."Vl_P") + '</h4></ul></ul>'
    ) as ProductName

FROM MyTable

 

So, all useful HTML can be implemented in SQL

  • Like 1
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...