# Step 3: Adding a Grid

## Content



In this step you will add a grid that will be used to display the data in the _Categories_ table of the Northwind database. You can use **C1FlexGrid** or any grid you are familiar with, but in this example, we'll use a **DataGridView** control.

1.  Drag a **DataGridView** control from the **Toolbox** onto your form.
2.  Click the **DataGridView**'s smart tag and set the **DataSource** to the c1DataSource1 control we added to the form.
    
    ![](https://cdn.mescius.io/document-site-files/images/94bcede7-c342-4bf9-97a8-95fb8706d41c/graphics/quickstartwinforms/datagridview.png)
    
3.  In the Visual Studio Properties window, set the **DataMember** property to _Categories_. The grid will automatically generate columns for all the fields in the _Categories_ type.
    
    Now simply run the project to view the grid!