Documents

NextGrid & NextDBGrid

NextGrid

NextDBGrid

NextInspector

NextSheet

NextCollection

Misc

Labs

NextGrid .NET

Graphic Column Tutorial

Related Articles:

Info
  • Skill:
  • Version: 1.0.0
  • Author: 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?

Comments

2009-09-16 00:20:33

if i have the graphic loaded how to save to hisk and to a memory stream? how to know wich file type is? GIF? TIFF? JPEG?

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