Jump to content


Photo

TNxIconColumn: Setting index of icon at runtime


  • Please log in to reply
2 replies to this topic

#1 Frank

Frank
  • Members
  • 30 posts

Posted 19 September 2021 - 01:55 PM

Hello,

 

in my grid i have a TNxIconColumn with a assinged Imagelist.

 

Now i want to set the iconindex at runtime to change the displayed icon, but i can't find the correct property.

 

I tried

if (FieldbyName('BLPLAYABLE').AsInteger = 0) then
  begin
    frmMain.gvTracks.Cellby['colPlayable', intRowCnt].????????
  end;

Any Suggestion is welcome

 

 

Best Regards

Frank



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 19 September 2021 - 01:59 PM

Hello,

 

Setting AsInteger property (to desired image index) should do the job.


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 Frank

Frank
  • Members
  • 30 posts

Posted 19 September 2021 - 02:24 PM

Hello,

 

works perfect, thank you very much.

 

 

Best Regards

Frank






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users