aspnet-116122-components-vertical-grid-getting-started-lesson-1-how-to-create-a-vertical-grid.md
This tutorial shows how to create a vertical grid and customize its settings.
This tutorial consists of the following steps.
In this step, we will perform common actions required to add a Vertical Grid control to a website.
This creates a new ASPxVerticalGrid.
<body>
<form id="form1" runat="server">
<div>
<dx:ASPxVerticalGrid ID="ASPxVerticalGrid1" runat="server"></dx:ASPxVerticalGrid>
</div>
</form>
</body>
To connect the vertical grid to a data source, click the smart tag and choose the New data source item.
In the opened wizard, different data source types are available. Select the SQL data source type and click OK.
Then, specify your database.
Choose the table and fields from the selected table.
Click Next and then Finish to complete the wizard. The Vertical Grid is now bound to the database.
To enable the header filter, select the Designer item from the opened smart tag menu to open the ASPxVerticalGrid Designer. Select the Filtering/Header Filter menu item. Set the ShowHeaderFilterButton option to true and click OK.
Run the website to see the result.