The examples in the demos like the Ticker demo create a TStringsData and set the TeeGrid equal to the Data array;
Data:=TStringsData.Create(5,8);
TeeGrid1.Data:=Data;
The problem is that this clears some of the formatting like column width and justification previously setup in the form for TeeGrid1.
Is there a way to not lose the formatting other than capturing it and reapplying it?
Can the data be moved directly into TeeGrid1 without the use of the Data array and will this solve the formatting issues?
TeeGrid
Re: TeeGrid
Hello,
You can avoid the Columns reset with this:
You can avoid the Columns reset with this:
Code: Select all
type
TCustomTeeGridAccess=class(TVCLTeeGrid);
//...
TCustomTeeGridAccess(TeeGrid1.Grid).ILoading:=True;
TeeGrid1.Data:=Data;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |