Introducing ASP.NET 2.0: GridView Control
(Page 1 of 5 )
In this article, you will learn how to work with the GridView control using the data from a Microsoft Access database. I will examine how to perform advanced tasks such as displaying, sorting, paging, updating and deleting data using one of the powerful controls included with Visual Studio 2005 in a step-by-step manner.
You cannot insert data into the database using the GridView control. However, you can do so by using the DetailsView and FormsView controls which ship with ASP.NET 2.0. I will discuss these controls in a forthcoming article. You should also note that the GridView control in ASP.NET 2.0 is a replacement to the popular DataGrid control in ASP.NET 1.1. As a primary requirement, you should have the latest build of Visual Studio 2005 in order to understand the steps explained in this article.
First of all, launch Visual Studio .NET (Start | All Programs | Microsoft Visual Studio 2005 Beta | Microsoft Visual Studio 2005 Beta 2). Create a new Web project (File | New | Web Site) and select the location where your project will be saved. Be sure that you have checked ASP.NET Web Site from the templates section and Visual Basic .NET as your language from the Language drop down box.

Figure 1
Click the OK button and switch to the design view by selecting the appropriate option from the IDE. Place an instance of GridView and AccessDataSource controls from the Toolbox (See Figure 2).

Figure 2
Next: Create the Database >>
More ASP.NET Articles
More By Anand Narayanaswamy