| Widgets > wijgrid > wijgrid Tutorial > wijgrid Step 2 of 4: Creating the Controller |
In the previous step, you created a model. In this step, you'll create a controller to return the items in the Products table from the model.
Complete the following steps:
Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
| Imports [PROJECTNAME] |
|
C#
| C# |
Copy Code
|
|---|---|
| using [PROJECTNAME].Models; |
|
Visual Basic
| Visual Basic |
Copy Code
|
|---|---|
|
|
C#
| C# |
Copy Code
|
|---|---|
|
|
This code specifies the model that is used to populate the grid and the view that will be rendered as a response to the data population.
Now that you've created the model and the controller, you can create the view, which will consist of a table and appear on the homepage of the project, in wijgrid Step 3 of 4: Creating the View.