Board index » delphi » Icons in DBGrid

Icons in DBGrid


2003-12-30 11:18:38 PM
delphi238
I am in need of a DBGrid where i display records for some events that have
taken place. The events can be something like a telephone conv., meeting,
etc. where time etc. is also displayed. I want to put a small icon in the
first column indicating graphically the type of event. This icon shall not
be part of the database record but generated on the fly while records are
displayed, and connected to the type of event, i.e. Telephone has id no. 1,
Meeting has id no. 2 etc. and the icon evaluates on this id's.
Can anyone give me an idea of such a routine
I use Delphi 6, Enterprise Edition
Regards
Magnus S. Petersen
 
 

Re:Icons in DBGrid

Magnus S. Petersen writes:
Quote
Can anyone give me an idea of such a routine
Both VirtualDataTree and VirtualDBTreeEx support using a field as an
index into a TImageList and displaying the corresponding image.
VirtualDataTree is available in
VirtualDBTreeEx is available in the "Virtual Treeview (add ons)"
selection at www.delphi-gems.com/VirtualTreeview/VT.php
--
Cheers,
Ignacio
 

Re:Icons in DBGrid

I have found an excellent answer on my question, which has been raided
before and has been answered in this group by
Quasidata
Regards
Magnus S Petersen
"Magnus S. Petersen" <XXXX@XXXXX.COM>skrev i en meddelelse
Quote
I am in need of a DBGrid where i display records for some events that have
taken place. The events can be something like a telephone conv., meeting,
etc. where time etc. is also displayed. I want to put a small icon in the
first column indicating graphically the type of event. This icon shall not
be part of the database record but generated on the fly while records are
displayed, and connected to the type of event, i.e. Telephone has id no.
1,
Meeting has id no. 2 etc. and the icon evaluates on this id's.

Can anyone give me an idea of such a routine

I use Delphi 6, Enterprise Edition



Regards

Magnus S. Petersen