1
This is a BUG that affects only the first column of 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 using the Afteropen event from your table, example:
procedure TForm1.ClientDataSet1AfterOpen(DataSet: TDataSet);
begin
DBGrid1.Columns[0].Width := 200;
end;
Eduardo Belo
As far as I know from my experience the XE7, it will adjust to the content, and as there is nothing it leaves in a standard size. To force his size I can’t remember if there’s any configuration for it. Sure, you can always unleash that glorious everyday gambit and set the
width
in the arm after opening theDataset
, but it is not something to recommend for obvious reasons.– DH.
I found in the forum or was an article on the board of a dbgrid column adjustment process, until it works cool, but for a grid that has a lot of information is not cool.
– Cleiton Maciel