Recent

Author Topic: how to add an image on the selected field in a dbgrid in Delphi 7  (Read 7185 times)

srianduma

  • Newbie
  • Posts: 5
Hi,

I want to add an image on the selected field in a dbgrid in Delphi 7. There are many fields that are displayed in the dbgrid. If the user selects a field, then I have to add an image to its title.

Thanks,
Sridhar

paweld

  • Hero Member
  • *****
  • Posts: 1318
Re: how to add an image on the selected field in a dbgrid in Delphi 7
« Reply #1 on: December 29, 2024, 12:04:41 pm »
sample in attachment
Best regards / Pozdrawiam
paweld

srianduma

  • Newbie
  • Posts: 5
Re: how to add an image on the selected field in a dbgrid in Delphi 7
« Reply #2 on: December 29, 2024, 12:26:35 pm »
Many thanks for your reply.  :)
I am trying to implement the same in Delphi 7.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12105
  • FPC developer.
Re: how to add an image on the selected field in a dbgrid in Delphi 7
« Reply #3 on: December 29, 2024, 06:44:36 pm »
This is a Lazarus forum, not a D7 forum.

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1477
    • Lebeau Software
Re: how to add an image on the selected field in a dbgrid in Delphi 7
« Reply #4 on: December 30, 2024, 12:36:32 am »
I want to add an image on the selected field in a dbgrid in Delphi 7.

Why are you asking a DELPHI question in a FREEPASCAL/LAZARUS forum?  Delphi questions should be asked in a Delphi forum, such as on Delphi-PRAXiS or StackOverflow.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

srianduma

  • Newbie
  • Posts: 5
Re: how to add an image on the selected field in a dbgrid in Delphi 7
« Reply #5 on: December 30, 2024, 07:04:07 am »
Sorry.

But paweld instead of providing the reply, might have told that. not sure that he/she gave a reply and then saying that this is not a Delphi forum. my question says the solution required is for Delphi.

thanks, i will not post anything further here

Zvoni

  • Hero Member
  • *****
  • Posts: 2895
Re: how to add an image on the selected field in a dbgrid in Delphi 7
« Reply #6 on: January 02, 2025, 08:20:30 am »
... and since his screenshot says something "Crystal 4.0" i'm wondering what this has to do with Databases.....
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

srianduma

  • Newbie
  • Posts: 5
Re: how to add an image on the selected field in a dbgrid in Delphi 7
« Reply #7 on: January 02, 2025, 08:27:51 am »
I dont know what to say. it is just a name. not sure why the name should be related to a database :o

wp

  • Hero Member
  • *****
  • Posts: 12676
Re: how to add an image on the selected field in a dbgrid in Delphi 7
« Reply #8 on: January 02, 2025, 01:17:59 pm »
I dont know what to say. it is just a name. not sure why the name should be related to a database :o
Because you posted in the "Database" board, and it would be helpful to know the database you are working with.

srianduma

  • Newbie
  • Posts: 5
Re: how to add an image on the selected field in a dbgrid in Delphi 7
« Reply #9 on: January 02, 2025, 02:05:14 pm »
an application title has become a topic here. what to say

Zvoni

  • Hero Member
  • *****
  • Posts: 2895
Re: how to add an image on the selected field in a dbgrid in Delphi 7
« Reply #10 on: January 02, 2025, 02:51:10 pm »
an application title has become a topic here. what to say
I apologize for the confusion, since there IS already a software out there called "Crystal" in v4.0 (though already 3 years old)
What confused me is the phrasing of your request, since i understood, that you want an image in the column-header.

pawel showed you the relevant stuff
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

 

TinyPortal © 2005-2018