Jump to content

dbgrid action columns - change images


sasa22

Recommended Posts

 

i use dbgri and i have a field actioncolums -> buttons, we use imageindex -> 0 how can i change the image in the field actioncolums -> buttons say imageindex -> 2 for some condition columns [0] <1000 display imageindex -> 0 columns [0]> 1000 show imageindex -> 2

glavna1.png

 

druga_2.png

----------------------------------------------------------------------------------------------------------

Unigui version 1.90.0.1514  -trial edition
I'm just trying out the possibilities,

Link to comment
Share on other sites

procedure TfrdCallHistory.qDataCalcFields(DataSet: TDataSet);
begin

  if DataSet.Fields[fIdxIsOut].AsBoolean then
    DataSet.Fields[fIdxCallType].AsString := '<i class="fas fa-sign-out-alt"></i>'
  else
    DataSet.Fields[fIdxCallType].AsString := '<i class="fas fa-sign-in-alt"></i>';
end;

i use separate column

Screenshot_9.jpg

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...