I tried to use the TWebDBGrid.Comlumns[i].Width as well as the TWebDBGrid.ColWidths[i] to set the width of the columns at runtime. I used a TWebSplitters event OnMoved. However, this does not work.
How do I resize the columns width at runtime?
I tried to use the TWebDBGrid.Comlumns[i].Width as well as the TWebDBGrid.ColWidths[i] to set the width of the columns at runtime. I used a TWebSplitters event OnMoved. However, this does not work.
How do I resize the columns width at runtime?
I cannot see a problem.
Was retested in demo Demo\Basics\DBGrid with code added:
procedure TForm1.WebButton1Click(Sender: TObject);
begin
WebDBGrid1.ColWidths[1] := 128;
end;
and this works as expected. Please compare with this demo.
I used a TWebSplitters event OnMoved.
I suggest to isolate this into a sample source project and send this so we can reproduce & investigate.
Must have been my fault. Sorry - works as expected.