Data Grid Column Hidden Attribute

https://learninghub.kx.com/forums/topic/data-grid-column-hidden-attribute

Data Grid Column has Hidden Attribute as shown in below screenshot. we can bind this attributeproperty using View State Variable lets say. IsColumn1Hidden.

 

Now to drive column visibleHidden setting, we have UI like below: where we give column name and checkbox. if checkbox is checked then we make that column hidden. checkbox value is bind to viewstate variable: IsColumn1Hidden

 

Query: We want to reverse this behavior. example. when I check this checkbox then We want to make column Visible. How can we achieve this ? [Not able to fig out how to apply negation on the view state variable]

Hi Vinor_Sarder,

You should be able to simply toggle the field visible by linking the viewstates as you’ve mentioned above.

If that’s not working, you could create e.g. a button which triggers a data source (via run-query ) that inspects the current value of IsColumn1Hidden, negates it and maps that value back to IsColumn1Hidden

Thanks. achieved solution on similar linesLogic i.e. using result mapping. [not used run-query option]