difference between gridview,data list and repeater control

Answer Posted / sharda

Explanation:
In ASP .NET basically there are three kinds of the Data
Presentation Controls.


GridView (or DataGrid)
DataList
Repeater


When we talk about usage of one Data Presentation Controls
then many of us get confused about choosing one. When you
need to use one of the data Presentation Control then You
have to see what kind of behavior you need in your Data
Display.


Do you want to show Data in many Pages or in one page?
Do you have to Display more then one column in a Row ?

Do you want to have a Row repeating Possibility?

Will users be able to update, Insert and delete the Data?

We are going provide a list of different abilities of
Repeater Control, Datalist Control and GridView Control.



Features of a GridView
•Displays data as a table
•Control over
–Alternate item
–Header
–Footer
–Colors, font, borders, etc.
–Paging
•Updateable
•Item as row

Features of Repeater
•List format
•No default output
•More control
•More complexity
•Item as row
•Not updateable


Features of DataList
•Directional rendering
•Good for columns
•Item as cell
•Alternate item
•Updateable

Is This Answer Correct ?    116 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mvc in asp.net tutorial? : Asp.Net MVC

806


Differentiate between a page theme and a global theme?

738


What is Dynamic Web and discuss its usage with the help of real life examples?

830


What are the different types of Caching techniques in ASP.NET?

801


How do you handle server controls?

888


What is a session government?

703


What are the advantages of passport authentication?

767


What are themes and skins in 2.0, explain usage scenario?

729


Who is using asp.net?

704


9. Why should we hire you over the others waiting to be interviewed?

2492


Why is mvc better than asp.net?

778


Please brief not about xsd,xslt & xml?

772


What is data control in asp.net?

785


What is meant by ispostback in asp net?

782


What is session management in web application?

783