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

To display data in a Repeater control which template you provide?

598


I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)

1500


Explain the asp.net page life cycle.

564


How does the iis work?

546


Can we create a multiple user simultaneously ?

590






Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?

656


Describe the events in the life cycle of a web application.

605


What are the properties of the eventargs argument when capturing keyboard events?

549


Define globalization and localization.

570


Explain the difference between web user control and web custom control?

542


What is class and object in asp.net?

500


Which authentication uses a combination of windows and iis authentication?

593


Describe the Server Control Events of ASP.NET?

661


What does the orientation property do in a menu control?

539


Give me one example of Web API Routing?

605