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

What is the Global ASA(X) File?

2 Answers  


How does the regular expression validator work? What are two situations when you might want to use one?

2 Answers  


Where is the view state data stored?

0 Answers  


Can any one explain with the example how to capture the application error in Aplication_Error() method?

1 Answers   Infosys,


What is the importence of the INTERFACE? but not the inheritence concept?and why we r declaring the empty methods in that? we can directly implements with in the class know? Tell me the importence?

2 Answers  






what is ienumerable interface?

1 Answers  


What is a Cookie? Where is it used in ASP.NET?

0 Answers   MindCracker,


What is difference between session and cookies?

0 Answers  


What are HTTP handlers in ASP.NET?

0 Answers   MindCracker,


What are Caching techniques in .NET

0 Answers   Microsoft,


You create an assembly to access data in a relational database. This assembly will be used by several ASP.NET applications on your Web server. You need to ensure that all your applications can access the assembly. Which two actions should you take (Each Answer: presents part of the solution.)? (Choose two) A . Run the Assembly Registration tool (Regasm.exe). B . Run the String Name tool (Sn.exe). C . Run the Installer tool (Intallutil.exe). D . Run the Global Assembly Cache tool (Gacutil.exe).

6 Answers   CPCL, Syntax Softtech,


Rate yourself in .net and sql database?

1 Answers   BrickRed, Infosys, Satyam, SP Software,


Categories