Atozed Forums
TIWjQDBGrid hide column - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: TIWjQDBGrid hide column (/thread-2576.html)



TIWjQDBGrid hide column - Comograma - 11-30-2021

How can I hide/show a column on a TIWjQDBGrid at runtime ?


RE: TIWjQDBGrid hide column - Alexandre Machado - 12-11-2021

There are 2 overloaded methods to Show and Hide columns in all IWjQGrids. You can use the column name or the index:

procedure HideColumn(const ACol: Integer); overload;
procedure HideColumn(const AColName: string); overload;
procedure ShowColumn(const ACol: Integer); overload;
procedure ShowColumn(const AColName: string); overload;


RE: TIWjQDBGrid hide column - Comograma - 12-13-2021

(12-11-2021, 12:23 AM)Alexandre Machado Wrote: There are 2 overloaded methods to Show and Hide columns in all IWjQGrids. You can use the column name or the index:

    procedure HideColumn(const ACol: Integer); overload;
    procedure HideColumn(const AColName: string); overload;
    procedure ShowColumn(const ACol: Integer); overload;
    procedure ShowColumn(const AColName: string); overload;

Thanks, Alexandre!!!