difference between gridview,data list and repeater control

Answers were Sorted based on User's Feedback



difference between gridview,data list and repeater control..

Answer / palanivel

Difference between Repeater , Datalist, DataGrid(or GridView)



Repeater :

It contains Header Template, Item template , alternate
Item template and footer template . it can't support
Selection, editing, sorting and paging. this is read only
and fast.


Datalist :

It contains Header Template, Item template , alternate
Item template , Edit itm template and footer template . it
can't support sorting and paging but support selection and
editing


DataGrid(or GridView) :

It contains Header Template, Item template , alternate Item
template , Edit itm template and footer template . it can
support selection, editing , sorting and paging . Mostly
every developer caught used this control .

Is This Answer Correct ?    137 Yes 5 No

difference between gridview,data list and repeater control..

Answer / 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

difference between gridview,data list and repeater control..

Answer / mahendra

DataGrid and DataList controls are derived from the WebControl class, while the Repeater control is derived from the Control class. The WebControl class contains a number of aesthetic properties, such as BackColor, ForeColor, CssClass, BorderStyle and so on.

Is This Answer Correct ?    33 Yes 12 No

difference between gridview,data list and repeater control..

Answer / trimurthy

1.we are selecting ,updating from database in gridview and
also insering by using footer row and paging in gridview.
2we are create multiple column table,where each cell is a
separate record in data list.
3.It does not support selection and editing in repeater.

Is This Answer Correct ?    37 Yes 17 No

difference between gridview,data list and repeater control..

Answer / nitish

1. Datagrid has paging while Datalist doesnt.
2. Datalist has a property called repeat.
Direction=vertical/horizontal.(This is of great help in
designing layouts). This is not there in Datagrid.
3. A repeater is used when more intimate control over html
generation is required.
4. When only checkboxes/radiobuttons are repeatedly served
then a checkboxlist or radiobuttonlist are used as they
involve fewer overheads than a Datagrid.

Is This Answer Correct ?    22 Yes 2 No

difference between gridview,data list and repeater control..

Answer / vikas

GridView provides ability to allow the end-user to edit the page data or sort the page records. But it comes at a cost of speed. Secondly, the display format is very simple i.e. is in row and columns.
With its templates, DataList provides more control over the look and feel of the displayed data than the GridView. And it offers better performance than GridView.
With Repeater, the only HTML emitted are the values of the databinding statements in the templates along with the HTML markup specified in the templates—no "extra" HTML is emitted, as with the Gridview and DataList.

for details check below link.

https://csharpquestions1.blogspot.in/2016/10/what-is-difference-between-data-list.html

Is This Answer Correct ?    0 Yes 0 No

difference between gridview,data list and repeater control..

Answer / venkatrami reddy

Gridview:
gridview is a collection of templates like header, bounded,edit ,item ,hyperlink,image fields.using this gridview control we can perform all most all database realations.
Datalist:
datalist is a collection of header template,edit item template,item template and footer templates.By using this control we can select and edit the data.
repeater:
Repeater is a collection of item template,header template and footer template.by comparing the repeater and datalist, in case of performance we prefer to repeater control.

Is This Answer Correct ?    13 Yes 21 No

Post New Answer

More ASP.NET Interview Questions

How should I destroy my objects in asp.net?

0 Answers  


Why do I get error message "could not load type" whenever I browse to my asp.net web site?

0 Answers  


Define web.config in .net?

0 Answers  


Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc

0 Answers  


In ViewState How much lifespan items stored?

0 Answers   Siebel,






What are session state modes?

0 Answers  


How can we prepairing Interview

0 Answers   ITcom, TCS,


How to deploy/publish webservices?How many ways?Plz explain me

0 Answers   TCS,


what are the events raised in asp.net page life cycle?in which stage view state can be loaded?

0 Answers   EDS,


Difference between asp and asp.net ?

4 Answers   Accenture, BirlaSoft, TCS,


Can a master page inherit another master page?

13 Answers   Emphasis, IBM, NIIT, Sebiz Square,


How to Deploy a project?

2 Answers  


Categories