{"id":4685,"date":"2017-10-28T04:43:18","date_gmt":"2017-10-28T04:43:18","guid":{"rendered":"http:\/\/a1webdesignteam.com\/blog\/?p=4685"},"modified":"2017-10-28T04:43:18","modified_gmt":"2017-10-28T04:43:18","slug":"difference-between-gridview-and-datagrid-and-listview","status":"publish","type":"post","link":"https:\/\/a1webdesignteam.com\/blog\/difference-between-gridview-and-datagrid-and-listview\/","title":{"rendered":"Difference Between GridView and DataGrid and ListView"},"content":{"rendered":"<p class=\"firstpara\">GridView, DataGrid and ListView Data-bound controls are used to display and modify data in your Asp.Net web application. These controls also contains others Asp.Net controls like as Label, TextBox, DropdownList etc. into a single layout. In this article, I am going to expose the difference among these three.<\/p>\n<h2>Difference between GridView and DataGrid<\/h2>\n<div class=\"table\">\n<div class=\"headrow\">\n<div>GridView<\/div>\n<div>DataGrid<\/div>\n<\/div>\n<div class=\"divrow\">\n<div>It was introduced with Asp.Net 2.0.<\/div>\n<div>It was introduced with Asp.Net 1.0.<\/div>\n<\/div>\n<div class=\"divrow\">\n<div>Built-in supports for Paging and Sorting.<\/div>\n<div>For sorting you need to handle SortCommand event and rebind grid required and for paging you need to handle the PageIndexChanged event and rebind grid required.<\/div>\n<\/div>\n<div class=\"divrow\">\n<div>Built-in supports for Update and Delete operations.<\/div>\n<div>Need to write code for implementing Update and Delete operations.<\/div>\n<\/div>\n<div class=\"divrow\">\n<div>Supports auto format or style features.<\/div>\n<div>This features is not supported.<\/div>\n<\/div>\n<div class=\"divrow\">\n<div>Performance is slow as compared to DataGrid<\/div>\n<div>Performance is fast as compared to GridView.<\/div>\n<\/div>\n<\/div>\n<h2>Difference between ListView and GridView<\/h2>\n<div class=\"table\">\n<div class=\"headrow\">\n<div>ListView<\/div>\n<div>GridView<\/div>\n<\/div>\n<div class=\"divrow\">\n<div>It was introduced with Asp.Net 3.5.<\/div>\n<div>It was introduced with Asp.Net 2.0.<\/div>\n<\/div>\n<div class=\"divrow\">\n<div>Template driven.<\/div>\n<div>Rendered as Table.<\/div>\n<\/div>\n<div class=\"divrow\">\n<div>Built-in supports for Data grouping.<\/div>\n<div>Need to write custom code.<\/div>\n<\/div>\n<div class=\"divrow\">\n<div>Built-in supports for Insert operation.<\/div>\n<div>Need to write custom code.<\/div>\n<\/div>\n<div class=\"divrow\">\n<div>Provides flexible layout to your data.<\/div>\n<div>Need to write custom code.<\/div>\n<\/div>\n<div class=\"divrow\">\n<div>Performance is fast is compared to GridView.<\/div>\n<div>Performance is slow as compared to ListView.<\/div>\n<\/div>\n<\/div>\n<h5>What do you think?<\/h5>\n<p>I hope you will enjoy the tips while programming with Asp.Net. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GridView, DataGrid and ListView Data-bound controls are used to display and modify data in your Asp.Net web application. These controls also contains others Asp.Net controls like as Label, TextBox, DropdownList etc. into a single layout. In this article, I am going to expose the difference among these three. Difference between GridView and DataGrid GridView DataGrid [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4686,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0},"categories":[32],"tags":[51],"_links":{"self":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/4685"}],"collection":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/comments?post=4685"}],"version-history":[{"count":0,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/posts\/4685\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/media\/4686"}],"wp:attachment":[{"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/media?parent=4685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/categories?post=4685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/a1webdesignteam.com\/blog\/wp-json\/wp\/v2\/tags?post=4685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}