Toggle grid header

Hi,

I have a button of “buttonTwoState” type on the toolbar that I want to use for toggling fildering header of the grid. Eg. if clicked, the filter header shows up, unclicked, the header hides.

How can I actually do the toggling - is there a way to check if the header is attach or detached?

Many thanks,

Adam

You may add a custom counter switch it (1/0) what attaching/detaching the header.
But, it is not recommended to attach/detach dynamically header with filters. Filters won’t work correctly in this case.