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

Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc

643


What is the difference between session.abandon() vs clear()?

623


Define data caching?

620


What is server infrastructure?

702


Explain the use of dataadapter.

685






Explain how asp.net page works?

647


3. What goals do you have in your career?

1500


What is caching in asp.net?

642


If you have an application with multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers by using round-robbin load balancing. Explain which is the best approach to maintain login-in state for the users?

701


Explain what is postback in asp. Net?

660


What is a page life cycle? What are the events in a page life cycle?

583


What are the two types of web pages?

606


What are the Types of session management in ASP.NET

641


What is advantage of asp.net?

631


Is asp.net still used?

654