repeater and gridview diff?

Why is repeater fast than gridview?

Answer Posted / karthika.s

Repeater


Repeater is okay if you need to show data from some data
source. It offers the basic rendering options: header, item,
alternating item, separator and footer. It is really up to
developer how to fill these templates. By example, it is
easy to use Repeater to show read-only lists using templated
elements.


Repeater is faster because it offers only basic data bound
control rendering functionalities. If you want to show data
and you don't need any complex features described below then
repeater is the right joice.

GridView


GridView is rendered as table with columns and it is created
to show data and let users to manipulate it. GridView offers
powerful built-in features like:


* events for sorting data when user clicks on column
heading,
* row selection,
* row operations like adding, editing and deleting,
* paging,
* command columns and events to handle the commands.



GridView is excellent choice if there is a need to show
tabular data and also provide users with features described
above.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is postback in asp net?

562


What are the differnt types of handler in ASP.NET?

532


What is the page life cycle in asp.net?

557


Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

549


How do active server pages work?

546






In which event are the controls fully loaded?

566


What are user controls?

566


Why the javascript validation not run on the asp.net button but run successfully on the html button?

545


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

505


What is the difference between Classic ASP and ASP.Net?

528


What are the cookies types in asp.net?

555


Can we have 2 web config files?

539


How response object is related to asp's response object?

515


I’m having some trouble with cas. How can I diagnose my problem?

589


Where the viewstate is stored after the page postback?

676