Resizing TTIWAdvWebGrid at run time

Hello!

I started testing the TTIWAdvWebGrid component version 5.9.1.0 and got stuck immediately.
I cant resize the grid at run time!?
I put it inside a TIWRegion and aligned to client but it does nor follow the size of the region (aligned to browser).
Then I tried to delete the alignment and tried to set width and height manually but it does not change size!
What am I doing wrong?

Best regads, Mikael

Hi,

Unfortunately the TTIWAdvWebGrid does not support client alignment.
By default the grid will autosize to the number of rows and columns.

You can disable autosizing by setting Scroll.Style to scAuto and UseFullHeight/Width to True. Then manually update the width and height values.

Example:

procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin
  TIWAdvWebGrid1.Scroll := scAuto;
  TIWAdvWebGrid1.UseFullHeight := True;
  TIWAdvWebGrid1.UseFullWidth := True;
end;

procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
  TIWAdvWebGrid1.Height := TIWAdvWebGrid1.Height + 100;
  TIWAdvWebGrid1.Width := TIWAdvWebGrid1.Width + 100;
end;