Difference between DataList, GridView and Repeater Control in ASP.NET

Leave a Comment

#1. Repeater

It contains Header Template, Item Template, alternate Item Template and footer template. It can not support Selection, editing, sorting, and paging. This is read only and fast.

Features
Displays data as a table
Control over
Alternate item
Header Footer
Colours, font, borders, etc.
Paging
Updateable
Item as row

#2. DataList

It contains Header Template, Item Template, alternate Item Template, Edit Item Template and footer template. It can not support sorting, and paging but support selection and editing.

Features
List Format
No default output
More control
More complexity
Item as row
Not updateable

#3. DataGrid (or GridView)

It contains Header Template, Item Template, alternate Item Template, Edit Item Template and footer template. It can support Selection, editing, sorting, and paging. Mostly every developer caught this control.

Features
Directional rendering
Good for columns
Item as cell
Alternate Item
Updateable

0 comments:

Post a Comment