Page 1 of 1

TeeGrid

Posted: Sat Dec 23, 2017 1:28 pm
by 18682546
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?

Re: TeeGrid

Posted: Mon Jan 08, 2018 2:10 pm
by yeray
Hello,

You can avoid the Columns reset with this:

Code: Select all

type
  TCustomTeeGridAccess=class(TVCLTeeGrid);
//...
  TCustomTeeGridAccess(TeeGrid1.Grid).ILoading:=True;
  TeeGrid1.Data:=Data;