DBGrid Delphi Seattle

1

I installed a trial of Delphi Seattle and compiled my system, but I realized that when opening a certain query the column is not the size I determined previously. When compiling in Delphi 7 the columns are the correct size.

Is anyone else experiencing this problem?

    
asked by anonymous 18.04.2016 / 13:58

2 answers

4

This is a BUG that affects only the first column of the DBGrid and StringGrid. It has been fixed in RAD Studio 10 Seattle Update 1.

More details on the link below:

RSP-11797 - VCL TStringGrid.ColWidths is broken

You can fix this at runtime by using the AfterOpen event of your table, for example:

    procedure TForm1.ClientDataSet1AfterOpen(DataSet: TDataSet);
    begin
      DBGrid1.Columns[0].Width := 200;
    end;

Eduardo Belo

    
20.04.2016 / 15:47
-1
  • Save VCL.Grids.pas in the folder of your project.
  • Find TCustomGrid.ChangeScale .
  • Comment out lines 1710 and 1711 and recompile.
  • Reference: link

        
    27.07.2016 / 13:28