Aligning a Gridview in Visual Studio 2010

asp.net, visual-studio-2010

Solution

Use HorizontalAlign property of the GridView

Gets or sets the horizontal alignment of a GridView control on the page.

<asp:GridView ID="GridView1" runat="server" HorizontalAlign="Center" >
</asp:GridView>

Problem

i know this is really basic. i am creating a grid in visual studio 2010. i want to center align the grid. Not the data but the grid. it should appear in the middle of the page. can anyone tell me how to do it.

Original source