Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Performance of GridView vs DataList vs Repeater vs ListView

I have read some articles about this matter... and it seems that the Repeater is the one with best performance as explained in this other question.

I know that the GridView is the heaviest of them all, and that it weights a lot in the ViewState. So the DataList has been the "best" option for some situations.

But how about Datalist performance vs ListView?

Also, the GridView has a Pager already built in... and it seems that the ListView has one to. But if it create a pager for the DataList... will it become heavier than the GridView? And how about DataList + Paging vs ListView with Paging?

like image 258
Marco Avatar asked Dec 08 '09 22:12

Marco


People also ask

Why Repeater is faster than GridView?

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.

Is GridView or Repeater better?

A GridView control is used when you want to display a set of data in a table format. A Repeater is when you want to display data repeatedly, but not necessarily in a tabular format. If you want a table, use a GridView, otherwise use a Repeater. The speed of loading/updating is negligible between the two.

What are the differences between ListView and Repeater?

Between the two, ListView gives you a lot more events and built-in commands for editing, selecting, inserting. Additionally paging and grouping functionality. A Repeater is extremely simple, it repeats a layout with the data. Since you're building the layout by hand, Listview and Repeater require more code.

What is difference between DataList and Repeater control?

DataList control features DataList has more features but more limited in design when compared to Repeater. In the other hand, it has more flexibility and less features than GridView. Also, DataList has RepeatDirection, RepeatColumns and RepeatLayout properties, which are unique for DataList control.


1 Answers

performance reperter > datalist > gridview

simple control High-performance

like image 95
Clover Avatar answered Sep 23 '22 00:09

Clover