cancel
Showing results for 
Search instead for 
Did you mean: 

Data Grid Column Hidden Attribute

Vinod_Sardar
New Contributor II

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

Vinod_Sardar_0-1669120560020.png

Now to drive column visible\Hidden 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

Vinod_Sardar_1-1669120686445.png

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]

1 ACCEPTED SOLUTION

davidcrossey
Moderator Moderator
Moderator

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

View solution in original post

2 REPLIES 2

davidcrossey
Moderator Moderator
Moderator

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

Vinod_Sardar
New Contributor II

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

Vinod_Sardar_0-1669369470214.png