remove global variable.

Since `var` is missing, importing gridview sets a global variable.
And the variable is not used anywhere else, so this commit removing it.