Opening a fresh project and adding a TWebTableControl and adding the following code:
procedure TForm1.WebButton1Click(Sender: TObject);
begin
WebTableControl1.HideColumn(0);
end;procedure TForm1.WebButton2Click(Sender: TObject);
begin
WebTableControl1.HideColumn(1);
end;procedure TForm1.Form1Create(Sender: TObject);
begin
WebTableControl1.Footer.Visible:=true;
WebTableControl1.Footer.Pager:=tpPrevNext;WebTableControl1.Paging.Enabled:=True;
WebTableControl1.Cells[0,0]:='Col 1';
WebTableControl1.Cells[1,0]:='Col 2';
WebTableControl1.Cells[2,0]:='Col 3';WebTableControl1.Cells[0,1]:='Row 1';
WebTableControl1.Cells[1,1]:='Row 2';
WebTableControl1.Cells[2,1]:='Row 3';
end;
If I call WebButton1Click to hide the first column, this works but the page footer disappears.
If I call WebButton2Click to hide the second column, this works and the footer doesn't disappear but an error is thrown.
Is this expected behaviour or an error on my part somehow?
Thanks!