difference between gridview,data list and repeater control

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 3 levels at which content pages can be attached to Master Page?

678


Can you explain one critical mapping? Performance issue which one is better? Whether connected lookup tranformation or unconnected one?

907


What is the difference between cookie and session?

579


Explain how do you validate the controls in an asp .net page?

608


What is http post action?

645






How to create discussion forum in asp.net mvc? : Asp.Net MVC

625


How many ways are there to maintain a state in .net? What is view state?

667


Is asp.net and .net same?

638


What is a user session?

579


How can we create a website?

615


What is server infrastructure & server components?

859


In Code-Behind class which kind of code (server or client) is found ?

680


Describe the difference between inline and code behind - which is best in a?

653


What can you do with asp.net?

598


What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?

607