Mega Search
23.2 Million


Sign Up

Make a donation  
Image in TIWDBGrid  
News Group: embarcadero.public.delphi.thirdpartytools.intraweb

I want to show an image on every row of a TIWDBGrid.  The same image is used for every row (basically it is an icon that the user can click).  I have a TIWImage on the form and linked TIWImage to the column via the column's Control property.  The TIWImage is preloaded with the image at design-time.

The image only appears on the first row of the grid.  What do I need to do to get the image to appear on every row?

Thanks

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 14-Jan-2015, at 12:24 PM EST
From: Jon Robertson
 
Re: Image in TIWDBGrid  
News Group: embarcadero.public.delphi.thirdpartytools.intraweb
I'm having another issue as well.  When a TIWImage is the linked control on a column, the column's OnClick event is not fired when the image is clicked.  The TIWImage OnClick event is fired, however I need the LinkField's value for the row that was clicked and I don't know how to determine which row was clicked from the TIWImage.OnClick event.

I'd much rather have the column's OnClick event work in this scenario.

Thanks

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 16-Jan-2015, at 5:53 AM EST
From: Jon Robertson