Atozed Forums

Full Version: TIWjQDBGrid hide column
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I hide/show a column on a TIWjQDBGrid at runtime ?
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;
(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!!!