Hi all, I'm trying to get all visible columns at runtime (in web mode), but if I try to do it using the property Visible of a column, it doesn't work. If I click on the column title to hide or show a column, as shown in picture attached.
the column is hidden, but the property Visible of that colum remain true. How can I retrieve all visible columns at a given time? The code I write is this, but with the property Visible doesn't work:
procedure TmailsFrame.getVisibleColumns(var slColumns: TStringList); var iCount: Integer; begin try slColumns.Clear; for iCount := 0 to UniDBGrid1.Columns.Count - 1 do begin if (UniDBGrid1.Columns.Items[iCount].Visible = true) then slColumns.Add(UniDBGrid1.Columns.Items[iCount].Title.Caption); end; except on e: Exception do ShowMessage(e.Message); end; end;