TeeGrid

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
ghanshaw
Newbie
Newbie
Posts: 13
Joined: Wed Dec 13, 2017 12:00 am

TeeGrid

Post by ghanshaw » Sat Dec 23, 2017 1:28 pm

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?

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TeeGrid

Post by Yeray » Mon Jan 08, 2018 2:10 pm

Hello,

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,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply