![network4348658 | Embarcadero RAD Studio Delphi C++Builder Blogs](https://i0.wp.com/blogs.embarcadero.com/wp-content/uploads/2020/08/network-4348658.jpg?resize=1140%2C694&ssl=1)
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).
- Virtual data mode
Additionally it says that you can use it’s TVirtualModeData class to automatically create columns and provide cell values using OnGet and OnSet events.
- TStringGrid emulation
TeeGrid can be used like a TStringGrid using a TStringsData object:
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</em> Data.Columns:= 2; Data.Rows:= 6; <em>// Set header texts</em> Data.Headers[0]:= 'A'; Data.Headers[1]:= 'B'; <em>// Fill rows and cells</em> Data[0,0]:= 'A0'; Data[1,0]:= 'B0'; <em>// Set data to grid</em> TeeGrid1.Data:= Data; |
- Sub-columns (any column can have children columns)
1 |
TeeGrid1.Columns.AddColumn('My Column 1').Items.AddColumn('Sub-Column 1')... |
- Per-column formatting (font, back fill, stroke, text alignment, margins)
1 2 3 4 5 |
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</em> |
- Per-cell custom paint using the column OnPaint event
![TeeGridCustomCellPaint | Embarcadero RAD Studio Delphi C++Builder Blogs teegrid custom cell paint 2](https://i0.wp.com/blogs.embarcadero.com/wp-content/uploads/2020/11/TeeGrid_Custom_Cell_Paint-2017332.png?resize=750%2C593&ssl=1)
- Lock columns to left or right grid edges
![TeeGridLockedColumns | Embarcadero RAD Studio Delphi C++Builder Blogs teegrid locked columns 2](https://i0.wp.com/blogs.embarcadero.com/wp-content/uploads/2020/11/TeeGrid_Locked_Columns-6337632.gif?resize=750%2C435&ssl=1)
To see the rest of the cells options, go to the next link and download the package:
https://github.com/Steema/TeeGrid
Design. Code. Compile. Deploy.
Start Free Trial Upgrade Today
Free Delphi Community Edition Free C++Builder Community Edition