Jump to content


Photo

DBImage column


  • Please log in to reply
2 replies to this topic

#1 Afiag

Afiag
  • Members
  • 117 posts

Posted 24 May 2010 - 01:07 AM

Hey Boki

Currently Im using a DBImageColumn to present a icon stored in a imagelist in in my column. Now this works however it requires me to connect the columns using the "fieldname" to a field in my database and then have "3" in every single record in my database for that field. 3 is the index of the picture in the imagelist and while this works perfectly fine, I think its a waste to have to have thousands of records all with a "3" in a field just to let the icon show up....

To that end isn't there a way to someehow just forget the fieldname and just put that 3 in designtime somewhere so it knows it has to put imagelist1 index image 3 in the column ? It's ALWAYS 3, its never gona be any other image smile.gif

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 24 May 2010 - 04:35 PM

Hello Afiag,

Maybe using OnApplyCell event may help? Add there Value := '3';

I hope that this helps.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Afiag

Afiag
  • Members
  • 117 posts

Posted 24 May 2010 - 08:35 PM

QUOTE (Boki (Berg) @ May 24 2010, 04:35 PM) <{POST_SNAPBACK}>
Hello Afiag,

Maybe using OnApplyCell event may help? Add there Value := '3';

I hope that this helps.

Best regards


Works,
thanks.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users