setting output getcaps styles to grid if finds topology grid