What are the advantages of using listview over gridview? I need pagination, editing rows, inserting rows, and deleting rows in my view. Which control is best for that? It
Gridview is the best option. You are able to do all of the things you mentioned much easier than anyother control. A listview is derived from a ListBox
The ListView control supports the following features:
support for binding to data source controls such as SqlDataSource, LinqDataSource, and ObjectDataSource.
Customizable appearance through user-defined templates and styles.
Built-in sorting capabilities.
Built-in update and delete capabilities.
Built-in insert capabilities.
Support for paging capabilities by using a DataPager control.
Built-in item selection capabilities.
Programmatic access to the ListView object model to dynamically set properties, handle events, and so on.
Multiple key fields.
The GridView control is used to display the values of a data source in a table. Each column represents a field, while each row represents a record. The GridView control supports the following features:
Binding to data source controls, such as SqlDataSource.
Built-in sort capabilities.
Built-in update and delete capabilities.
Built-in paging capabilities.
Built-in row selection capabilities.
Programmatic access to the GridView object model to dynamically set properties, handle events, and so on.
Multiple key fields.
Multiple data fields for the hyperlink columns.
Customizable appearance through themes and styles.
To learn about the other data-bound controls that are available in ASP.NET, see ASP.NET Data-Bound Web Server Controls Overview.