KnowDotNet

GridLayout in VS2005 - Where is It?

GridLayout is an Option in VS2005

by Les Smith

Where is the GridLayout Property that was in ASP.NET Pages in VS2003?  It has been moved out of the Page in VS2005 and can be found in the Tools Options Dialog.

In VS2003, ASP.NET Web Pages had a PageLayout Property which allowed the developer to position controls anywhere they wanted to.  Much to my chagrin the first time I tried to move controls around, I could not do it and could not find the PageLayout Property.  Visual Studio 2005 no longer has such a property.  However, after some searching I found the alternative.

Open the the Tools Options Dialog and go to the HTML Designer.  This page has positioning options that will create a similiar effect although not exactly the same.  To enable Absolute Positioning, check the Change Positioning check box and select Absolute Positioning item from the combo box.  

This option is Global in effect; therefore all pages are affected, which can be a nuisance because all controls dropped on a page will initially be located in the upper left hand corner of the page.

I did some surfing on the Net and found the following link,
Kevin Dente's Blog, and he has a macro for toggling the setting, so you might want to pick that up and hook it to a hot key for easy access.


Have you tried our newest product, Visual Class Organizer?  You'll be amazed how easy it is to keep the code in your code windows organized.  TRY IT FREE FOR 30 DAYS BY CLICKING HERE.



Ask a Question, or give your feedback on my articles or products by going to the KnowDotNet Forum or by clicking on My Blog.