Changing viewport in a different active Grid

So I can use "viewport.settype" to change the viewport to left top right bottom... in home grid but If I have another Grid activated how do I switch to Grid front top.. (?
Thanks for any help..