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

Explain the concept of event bubbling in ASP.NET?

0 Answers   Sans Pareil IT Services,


Apart from IDE what are the enhancements in asp.net 2.0?

0 Answers   Microsoft,


What is a PostBack ?

1 Answers  


What are custom controls?

0 Answers  


Which is better php or asp.net?

0 Answers  






Define cookie.

0 Answers  


Is asp.net still used?

0 Answers  


Security types in ASP/ASP.NET? Different Authentication modes?

4 Answers   QuadLabs Technologies,


What are the various types of cookies in asp.net?

0 Answers  


What are the various types of validation controls provided by asp.net?

0 Answers  


What language does asp.net use?

0 Answers  


How may clustered index we can create in table?

0 Answers  


Categories