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?
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.
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.
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.
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.
performance reperter > datalist > gridview
simple control High-performance
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With