Jump to content

Recommended Posts

Posted

I found that I can to use html as a field`s value and grid`s column will show html result. Very good idea. I can prepare my custom view in query with html for the grid.  How I can insert picture in this code from other field?

Thank you  

Posted
Hi Dmytro Lendel.
 
You can clarify the issue?
 
If I understand correctly, you want to merge two fields.
 
I think it can be done in the request (you can use stored procedures), and using the function reconfigure (sender, store, columns, oldStore, the, eOpts) in the grid.
 
I'm sorry if I misunderstood ...

 

Sincerely.
Posted

Hi Lendel,

 

I do it, the same way, using <img> tag, in the database view for the other field i want to display the image.

 

rasaliad

Posted

Idea is very sipmple

 

Simple query

Select idkey,text from mytable

 

html query

Select '<p>'||cast(idkey as varchar(10))||'</p><p>'||text||'</p>'  as html_info from mytable

 

I can use any html tag and grid will show it correctly. Very nice.

Question was about image. I can use img tag but I need load pict from db filed not from file.

Posted

Thank you

I saw this demo. I can set some properties of the column and it starts to show image. It`s true. But in my case I need join values from the fields in the single field by html. Source code of the lib is hidden. How I can check it?

Posted

Lendel

 

As Delphi Developer said you can find the source at:

 

 

C:\DelphiLib\FMSoft93\Framework\uniGUI\Demos\Memo and Image in DBGrid\MemoEdit.dpr

 

rasaliad

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...