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 are the different types of sessions in asp.net? Name them?

674


Which class is used to send an email message from an ASP.NET Web page?

538


Are xaml file compiled or built on runtime?

551


Explain difference between dataset and recordset?

500


Why is xap important?

592






How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?

2238


What is Forms Authentication in ASP.NET?

575


Where is session data stored in asp net?

510


What are the cookies types in asp.net?

555


Explain about asp.net state management?

611


What are server objects?

515


What are the types of authentication in asp.net?

549


What are the differences between clr & cts?

534


Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?

551


What are session state modes?

562