After installing the latest TAdvStringGrid using the TMS Subscription Manager (TMS Component Pack),
AutoSizeRow and AutoSizeRows no longer works, all my rows have the same size no matter.
for i := 1 to AGrid.RowCount-2 do
begin
A.Filter := Format('PunktId=%d',[AGrid.Ints[iOffset,i]]);
A.Filtered := True;
if A.RecordCount>0 then
begin
iRow := AGrid.RealRowIndex(i);
AGrid.SetCheckBoxState(2,iRow,A.FieldByName(DBF_AVKRYSSET).AsBoolean);
if (iOffset=5) then
begin
if A.RecNo<iRecs then
if not A.FieldByName(DBF_AVKRYSSET).AsBoolean then AGrid.SetCheckBoxState(3,iRow,True)
else AGrid.Ints[iOffset+1,i] := 100;
end;
AGrid.Cells[iOffset-1,i] := A.FieldByName('Kommentar').AsString;
AGrid.AutoSizeRow(i); // Example, this is not working
end;
end;
Sorry, I mean AutosizeRow and AutosizeRows :)
Please make sure to use TMS Component Pack v7.5.3.1 where this issue was fixed.
Like I wrote in my first post, I use TMS Subscription Manager to download TMS Component Pack, but there is no update for the TMS Component Pack. I guess I will have to install the latest TAdvStringGrid by hand then, why wasn't the TMS Component Pack updated if this is a known bug?
As I explained, in the last TMS Component Pack distribution, there shouldn't be an issue.
Can you verify there are no old versions of AdvGrid.* hanging around on your system?
I just reinstalled the 7.5.3.1 component pack by hand and the TAdvStringGrid still shows 7.4.6.4. The computer I'm using is brand new and I installed TMS products using the TMS Subscription Manager.
There's only 1 folder with the TMS components, will check and see if I can find the reason why the grid is the wrong version, even if I can see during startup (in the splash sceen) that Component Pack 7.5.3.1 is installed.
The DCU file got the date of today and the advgrid.pas is dated 23.10.2014. When I open the advgrid.pas file it says version 7.4.6.4. There's no other advgrid.pas or advgrid.dcu on my computer.
// 7.4.6.4 : Improved : Format control of values in cell progressbar
// : Fixed : Regresssion with AutoColumnSize()
I removed every single trace of TMS components on my computer and then i reinstalled the TMS Component Pack, still no luck, AutoSizeRow and AutoSizeRows does not work in TAdvStringGrid 7.4.6.4 using Delphi XE3 Professional.
Please
provide a ready to run project (mailto: support@tmssoftware.com) that
demonstrates the issue so the responsible developer can investigate this
further.