Widgets > wijgrid > wijgrid Tutorial > wijgrid Step 3 of 4: Creating the View |
In the previous steps, you created a model and controller. In this step, you'll create a View showing a table on the home page of the project. Using Razor syntax, you'll create a loop to get the ProductName and UnitPrice for each product from the model.
Complete the following steps:
<table class="productgrid">
<thead>
<tr>
<th>Name</th>
<th>Price</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
Visual Basic
Visual Basic |
Copy Code
|
---|---|
|
C#
C# |
Copy Code
|
---|---|
|
In this step you created a View showing a table. But what if you wanted to create a formatted grid without having to code? You can use Wijmo, and you'll do just that in wijgrid Step 4 of 4: Adding Wijmo to the MVC Project.