Configure freeze trailing row and column

Refer to the following example code to see how to configure freeze trailing row and column count.