top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

what is difference between gridview and datalist in asp.net?

+2 votes
151 views
what is difference between gridview and datalist in asp.net?
posted Aug 4, 2014 by Arun

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+2 votes

Gridview-GridView allows us to present the data in the tabular format as when the data in GridView renders, it by default renders in table, tr and td. Limited in design, works like an html table. More in built functionality like edit/update, page, sort. Lots of overhead. The Grid View control provides the capability to sort columns, page through data, and edit or delete a single record. the Grid View control offers improvements such as the ability to define multiple primary key fields, improved user interface customization using bound fields and templates, and a new model for handling or canceling events.

GridView:It contains Header Template, Item template , alternate Item template , Edit itmtemplate and footer template . it can support selection, editing , sorting and paging . Mostly every developer caught used this control .

Datalist-Data list also displays data in a table but gives some flexibility in terms of displaying data row wise and column wise using the repeat direction property customisable version of the Gridview. Also has some overhead. More manual work as you have to design it yourself. You can configure the DataList control to enable users to edit or delete a record in the table. The DataList control differs from the Repeater control in that the DataList control explicitly places items in an HTML table.

Datalist:It contains Header Template, Item template , alternate Item template , Edit itmtemplate and footer template . It can’t support sorting and paging but support selection and editing

answer Nov 12, 2014 by Manikandan J
Similar Questions
+4 votes

Can someone brief me about the new ASP.NET Identity system.

+7 votes

How to create your own controls?
Basic steps will be helpful.

+4 votes

Also want to know where and how each one is used?

+4 votes

What is the difference between <asp:Panel > and <asp:PlaceHolder > in ASP.NET? When should you use one over the other?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...