Powerful Cross Platform TeeGrid Is Capable Of Handling A Large Number Of Cells In Delphi FireMonkey
TeeGrid is a full featured third party grid and tabular control for Delphi and C++. Supporting both VCL and FireMonkey it should run on Windows 32 and 64 bit, Mac OSX, Android and iOS.
According to the developer it is “Written from scratch (not derived from TCustomGrid or TGrid), aprox 10K lines of code and 100K compiled size. Free for non-commercial use (in binary format).”
It claims the only limit is the memory used by your own data, (compile for the 64bit platform for more than 2GB/3GB).
Additionally it says that you can use it’s TVirtualModeData class to automatically create columns and provide cell values using OnGet and OnSet events.
TeeGrid can be used like a TStringGrid using a TStringsData object:
// Initialize size
Data.Columns:= 2;
Data.Rows:= 6;
// Set header texts
Data.Headers[0]:= ‘A’;
Data.Headers[1]:= ‘B’;
// Fill rows and cells
Data[0,0]:= ‘A0’;
Data[1,0]:= ‘B0’;
// Set data to grid
TeeGrid1.Data:= Data;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
var Data : TStringsData; Data:= TStringsData.Create;
<em>// Initialize size Data.Columns:= 2; Data.Rows:= 6;
<em>// Set header texts Data.Headers[0]:= ‘A’; Data.Headers[1]:= ‘B’;
<em>// Fill rows and cells Data[0,0]:= ‘A0’; Data[1,0]:= ‘B0’;
<em>// Set data to grid TeeGrid1.Data:= Data; |
- Sub-columns (any column can have children columns)
TeeGrid1.Columns.AddColumn(‘My Column 1’).Items.AddColumn(‘Sub-Column 1’)... |
- Per-column formatting (font, back fill, stroke, text alignment, margins)
TeeGrid1.Columns[3].TextAlignment:= TColumnTextAlign.Custom;
TeeGrid1.Columns[3].TextAlign:= TTextAlign.Center; // or Left or Right
TeeGrid1.Columns[3].ParentFormat:= <strong>False</strong>; TeeGrid1.Columns[3].Format.Font.Size:= 14;
TeeGrid1.Columns[3].TextAlignment:= TColumnTextAlign.Custom; TeeGrid1.Columns[3].TextAlign:= TTextAlign.Center; <em>// or Left or Right |
- Per-cell custom paint using the column OnPaint event
- Lock columns to left or right grid edges
To see the rest of the cells options, go to the next link and download the package: