You are not logged in.
Pages: 1
I'm trying to set the column widths with the following code but SetFieldLengthMean doesn't appear to work (using XE2). Can anyone see what's wrong?
Table.CalculateFieldLengthMean(colwidths);
s := '';
for i := 0 to length(colwidths)-1 do
s := s + Chr(colwidths[i] + 64);
Grid := TSQLTableToGrid.Create(DrawGrid, Table, nil);
Grid.SetFieldLengthMean(s, false);
Offline
Just worked out that I needed to call TSQLTableToGrid.Refresh(true) after SetFieldLengthMean.
Offline
Pages: 1