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.
The ListView control is used to display the values from a data source. It resembles the GridView control, except that it displays data by using user-defined templates instead of row fields. Creating your own templates gives you more flexibility in controlling how the data is displayed. 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.
Hello @Vipendra all information of other authors is correct.
Mainly diff gridview and listview is that listview is light weight and very fast compare to gridview
because in gridview all field are built in update update,insert,paging header and footer .
this is very helpful when you want to show a small data in a specific way but as your data increase in gridview it put load on application but in listview you can design all listview according your requirement . You can remove unnecessary fields .Listivew give you more control of designing and displaying data.
+1
Ammar ShaukatRank #592 · 4.1K reputationPosted May 19, 2015, 1:52 AM EDT
Satyapriya NayakRank #47 · 31.5K reputationPosted May 21, 2012, 6:06 PM EDT
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.
The ListView control is used to display the values from a data source. It resembles the GridView control, except that it displays data by using user-defined templates instead of row fields. Creating your own templates gives you more flexibility in controlling how the data is displayed.
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.
Please refer the below link
http://skawareness.blogspot.in/2010/02/difference-between-gridview-and_9971.html
Thanks
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted May 19, 2015, 3:45 AM EDT
Ammar ShaukatRank #592 · 4.1K reputationPosted May 19, 2015, 1:52 AM EDT
Difference between ListView and GridView
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts