TTIWAdvWebGrid shows headings out of alignment with Scroll Style set to scAuto. Headings show ok with scNever. Is there a workaround?
Hi,
Can you please make sure the column widths are adjusted to the cell content?
In this case the width of the Info column should be increased to fit the content.
Can you please provide the following information so I can further investigate this?
- The version of IntraWeb you are using
- A ready to run sample project that demonstrates the issue
error.zip (70.5 KB) IW 14.2.7
Thank you for providing a sample project.
We are currently investigating this issue and will report back as soon as possible.
if iw 15 fixes the problem I am happy to upgrade
is iw15 supported ?
IW 15 is indeed supported for the TIWAdvWebGrid, but this does not have any influence on this particular behaviour.
Please try adding the following code to your sample to avoid the issue:
procedure TBenefitForm.IWAppFormCreate(Sender: TObject);
var
I: Integer; begin
{ set_title; }
set_columns; {has defining logic}
for I := 0 to ItemsAdvGrid.Columns.Count - 1 do
ItemsAdvGrid.Columns[I].WidthType := wtAbsolute;
ItemsAdvGrid.Columns[0].Width := 30;
ItemsAdvGrid.Columns[1].Width := 30;
ItemsAdvGrid.Columns[2].Width := 30;
ItemsAdvGrid.Columns[3].Width := 30;
ItemsAdvGrid.Columns[4].Width := 40;
ItemsAdvGrid.Columns[5].Width := 100;
ItemsAdvGrid.Columns[6].Width := 100;
ItemsAdvGrid.Columns[7].Width := 100;
ItemsAdvGrid.Columns[8].Width := 70;
ItemsAdvGrid.Columns[9].Width := 80;
...
thanks, I simply needed to widen the columns
for colw := 0 to Columns.Count-1 do with Columns[colw] do begin
WidthType := wtAbsolute;
Width := round(Width*1.5);
end;