They each have their place. The DataGrid automatically provides the UI for you (the table and cells), while for the Repeater you have to provide the UI yourself. That could be tables and cells, but could be other controls; the advantage is that you get complete
control over the rendering, so you can have your own layout and add your own classes and styles.
The ListView is also good and gives a more flexible layout approach, aimed at lists of items, where you can specifiy the direction and number of columns. For straight tabular data a grid is better.
Whoever
Member
378 Points
85 Posts
DataGrid, Repeater and <asp:table>?
Aug 28, 2003 03:40 AM|LINK
Anoop Shakth...
Member
100 Points
42 Posts
Re: DataGrid, Repeater and <asp:table>?
Aug 13, 2012 09:53 AM|LINK
To bind large data we use list view for smaller data we use repeater
Dave Sussman
All-Star
37716 Points
5005 Posts
ASPInsiders
MVP
Re: DataGrid, Repeater and <asp:table>?
Aug 14, 2012 07:19 AM|LINK
They each have their place. The DataGrid automatically provides the UI for you (the table and cells), while for the Repeater you have to provide the UI yourself. That could be tables and cells, but could be other controls; the advantage is that you get complete control over the rendering, so you can have your own layout and add your own classes and styles.
The ListView is also good and gives a more flexible layout approach, aimed at lists of items, where you can specifiy the direction and number of columns. For straight tabular data a grid is better.