Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

iwadvdbgrid image column

 Post Reply Post Reply
Author
Bordin Marco View Drop Down
New Member
New Member
Avatar

Joined: 06 Nov 2017
Posts: 14
Post Options Post Options   Quote Bordin Marco Quote  Post ReplyReply Direct Link To This Post Topic: iwadvdbgrid image column
    Posted: 22 May 2019 at 9:04am
Hi, how can I put an image that is not in dataset?
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2157
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2019 at 3:43pm
Hi,

You can add a Column of Type ctImage, then use the OnGetCellData event to set the cell value.

Example:
procedure TformDBGrid.TIWDBAdvWebGrid1GetCellData(Sender: TObject; RowIndex,
  ColumnIndex: Integer; var AValue: string);
begin
  if ColumnIndex = 0 then
    AValue := 'image.png';
end;
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down