Page 1 of 1

Hiding column data ....but how to hide Column itself ?

Posted: Thu Jan 18, 2018 9:39 pm
by teriibi
Hi, I can only Hide the DATA content of my specified Grid columns :!:

What´s the way to hide some selected Columns within a Datagrid, so that they do not even show on the Stack....¿
or that is not possible :?:

Code: Select all

on mouseup
   set the dgColumnIsVisible["colA"]of grp "DLand" to false
   set the dgColumnIsVisible["colB"] of grp "DLand" to false
end mouseup

Re: Hiding column data ....but how to hide Column itself ?

Posted: Thu Jan 18, 2018 10:09 pm
by Klaus
Hola teriibi,

you code works as advertized here in a fresh stack and a fresh datagrid with 2 columns:

Code: Select all

on mouseup
   set the dgColumnIsVisible["col 2"] of grp 1 to false
   set the dgColumnIsVisible["col 1"] of grp 1 to false
end mouseup
?

Best

Klaus

Re: Hiding column data ....but how to hide Column itself ?

Posted: Thu Jan 18, 2018 11:35 pm
by Zryip TheSlug
Assuming you are in the right forum and you are using the selecting column script of the DGH plugin:

Code: Select all

on mouseUp
   local tColumnToHide
   
   put the dghSelectedColumnName of grp "datagrid 1" into tColumnToHide
   set the dgColumnIsVisible[tColumnToHide] of grp "datagrid 1" to false
end mouseUp