- Gridview - Limited in design, works like an html table. More in built functionality like edit/update, page, sort. Lots of overhead.
- DataGrid - Old version of the Gridview. A gridview is a super datagrid.
- Datalist - more customisable version of the Gridview. Also has some overhead. More manual work as you have to design it yourself.
- ListView - the new Datalist : Almost a hybrid of the datalist and gridview where you can use paging and build in Gridview like functionality, but have the freedom of design. One of the new controls in this family
- Repeater - Very light weight. No built in functionality like Headers, Footers. Has the least overhead.Features of a GridView
•Displays data as a table •Control over –Alternate item –Header –Footer –Colors, font, borders, etc. –Paging •Updateable •Item as row Features of Repeater
•List format •No default output •More control •More complexity •Item as row •Not updateable Features of DataList •Directional rendering •Good for columns •Item as cell •Alternate item •Updateable
It contains Header Template, Item template , alternate Item template and footer template . it can't support Selection, editing, sorting and paging. this is read only and fast. Datalist : It contains Header Template, Item template , alternate Item template , Edit itm template and footer template . it can't support sorting and paging but support selection and editing DataGrid(or GridView) : It contains Header Template, Item template , alternate Item template , Edit itm template and footer template . it can support selection, editing , sorting and paging . Mostly every developer caught used this control .
Wednesday, August 29, 2012
Difference between Gridview,Datalist and Repeater
Subscribe to:
Post Comments (Atom)
Thank You Sir
ReplyDeleteThanks ......
ReplyDelete