R – Why not we use Repeater Control instead of Gridview Control

asp.netgridviewrepeater

I know GridView control comes with lot of built in functionality, which we can achieve from repeater control. GridView control has performance issues. Why don't we use repeater?

You will be thinking why this question, if you can achieve the functionality and performance using repeater use it, but I want to understand why and when we should use repeater and GridView. Can anybody explain me how and when?

Best Answer

GridView supports a tablular style of layout. So works nicely for displaying data that would fit into a table. e.g. report style data

Repeater control is good for a more free style layout. Say for displaying products on an ecommerce website or for displaying entries on a forum or blog.

Related Topic