Graphic Column Tutorial

Related Articles:

Info
  • Skill:
  • Version: 1.0.0
  • Authod: Bojan Nikolic
  • Created:
  • Updated: 2008-04-21
Downloads
From version 2.2 NextGrid come with new column type TNxGraphicColumn.

There is a TNxGraphicColumn in normal and in DB (NextDbGrid) version. In DB version you will need to attach BLOB graphic field to column.

In normal version you will need to add one TNxGraphicColumn, then to create TGraphic object and to attach this object to ObjectReference property of cell and NextGrid will show this image.

var
  G: TGraphic;
begin
  { Add one cell }
  NextGrid1.AddRow;
  { Create object }
  G := TBitmap.Create;
  { Load file into G object }
  G.LoadFromFile('testbitmap.bmp');
  { Cell will point to G object }
  NextGrid1.Cell[0, 0].ObjectReference := G;
end;


Was This Article Useful?

Only constructive comments, code contributions... will be publishes. Questions, non-official discussion will not be published.