Set display field captions

Refer to the following example code to learn how to show or hide filter buttons for rows and columns and pivot field captions in the grid.