Duration: 18 minutes
Summary: In this Video, we talk about displaying data using tabular controls. In the previous video, I showed you how to access database data and display them in a list (BulletedList and DropDownList). In this case we need to access the data and display it in a grid. We created a new data connection to the AdventureWorks database. We walked through the steps to setup the connection. Then we dropped a GridView control on the design surface. Then we customized the control to suit our needs. We Changed some formatting, but more importantly we selected the data source (which is the Employee table in the HumanResources schema). When we preview the page, the Grid displays all the employees in an HTML table. The discussion of all the tabular controls (GridView, DataList, Repeater, ListView, DetailsView, FormView) is long. We will talk more on how to add, edit, and delete data in those controls in the upcoming videos.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET and Visual Studio 2010
Keyword: ASP.NET 4, Visual Studio 2010, GridView, DataList, Repeater, ListView, DetailsView, FormView.