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 the difference between abstract class vs interface? Can give me the real time examples?

710


How to implement form based authentication in asp.net application?

815


They mostly asked difference between versions of technologies

1134


What does postback mean?

755


Why mvc is faster than asp.net? : Asp.Net MVC

742


How asynchronous call can be implemented using delegates?

773


How should I destroy my objects in asp.net?

801


What are server objects?

720


What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

791


What is mvc in angular?

742


How can you make sure that web api returns json data only?

744


What are the differences between clr & cts?

748


What is session in http request?

789


what is AutoEventWireUp and what is the use of This property explain in details?

1357


Explain about secure socket layer?

720