Formview
Formview
In general GridView control displays more than one record, but the
DetailsView control displays single record from database table. When you
execute your web page, DetailsView control renders an HTML table.
DetailsView control supports the edit, insert, delete and paging functionality.
You can insert, update, delete and paging the record in FormView. Adding
validation controls to a FormView is easier than DetailView control. For
displaying data, ItemTemplate is used.
Eval vs bind
The difference between Eval and Bind is that Eval function is used to bind data to control inside a DataBound
control, but it cannot update the values back to the database.
<asp:TextBox ID="txtName" runat="server" Text='<%# Eval("Name") %>'
/>
On the other hand, Bind function can be used to bind data to control inside a DataBound control and also it can
update the values back to the database.
<asp:TextBox ID="txtName" runat="server" Text='<%# Bind("Name") %>'
/>
Edit item template , insert item template
This control specifies data in a row and coloumn format just like gridview control.
The main difference is that the list view control includes an additional row for inserting a new row
into the table.
PAGING FOR LIST VIEW CONTROL
HOW TO CUSTOMIZE PAGING
HOW TO GROUP DATA IN LIST VIEW