Click here to Skip to main content
14,880,500 members
Please Sign up or sign in to vote.
3.40/5 (2 votes)
See more:
which is the better choice between Gridview and Repeater control? and why?
Posted

   
v2
Comments
Tanumay99 4-Jul-13 2:01am
   
thanks
jaideepsinh 4-Jul-13 2:27am
   
Accept as answer and vote if this one help to you.
This is one of the important issue among developers. In general, It depends upon the developer. But both have some advantage as well as disadvantage.
If performance is a major issue in term of time and the weight of the application then Repeater is always better choice.
because,
Advantage: Repeater take its data source one time and bind data repetitively.

Disadvantage: But repeater does not set pagination . So to set pagination we have to set a separate control or property through which we can populate data source of the repeater.

But In case of Grid view :

Disadvantage: It is heavy weight . so performance is slow than repeater.
Advantage: But It has its own pagination property.

Now It is our choice, whom we want to select among them in our application.
   
Both controls are good ....
It depends on your need ....:)


1)GridView is useful for displaying your inserted data and provide facility delete and update it..

2)The Repeater control is used to display a repeated list of items that are bound to the control. The Repeater control may be bound to a database table, an XML file, or another list of items
   
Comments
Tanumay99 4-Jul-13 2:01am
   
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900