Working with Tabular DataBound Controls : DataBound controls « Data Binding « ASP.NET Tutorial






There are six tabular DataBound controls. 
These controls can be divided into two types: 
those that display multiple data items at a time and 
those that display a single data item at a time.

First, you can use any of the following controls to display a set of data items:

GridView: A set of data items in an HTML table. 
          This control enables you to display, sort, page, select, and edit data.

DataList: A set of data items in an HTML table. 
          Unlike the GridView control, more than one data item can be displayed in a single row.

Repeater: Displays a set of data items using a template. 
          Repeater control does not automatically render an HTML table.

ListView: Displays a set of data items using a template. 
          ListView control supports sorting, paging, and editing database data.








19.8.DataBound controls
19.8.1.There are three main types of DataBound controls
19.8.2.Working with Tabular DataBound Controls
19.8.3.Use DetailsView and FormView to display a single data item at a time: