erich.wanker Posted June 6, 2013 Share Posted June 6, 2013 hello, i have [ ZConnection - ZQuery - DataSource - uniDBGrid ] to a firebird SQL Database.. i try to draw two different Images in the grid if a value is "0" or "1" in field "IMAGE_TEXT" of type char(200) i tryed out: procedure UniDBGrid3DrawColumnCell(Sender: TObject; ACol, ARow: Integer; Column: TUniDBGridColumn; Attribs: TUniCellAttribs); begin if column.FieldName ='IMAGE_TEXT' then begin if column.Field.Text ='0' then column.Field.Text:='<img width=16 height=16 src="images/a.png"/>'; if column.Field.Text ='1' then column.Field.Text:='<img width=16 height=16 src="images/b.png"/>'; end; but it allways wants to edit the database - or makes errors .... or whats the right way to realise this ? Thank you for your help. Erich Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.