Jump to content

dbgrid


Pink-El
 Share

Recommended Posts

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  

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

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.

 Share

×
×
  • Create New...