About the author

Imran Imran
Like Development in DotNet.

E-mail me Send mail

Recent Articles

 
1: Roles And Membership
Category: ASP.Net
Added: 6/2/2008

 
2: ListView and DataPager in ASP.NET 3.5
Category: ASP.Net
Added: 5/15/2008

 
3: Asp.Net Cookies
Category: ASP.Net
Added: 5/8/2008

 
4: DatagridDatalistRepeater
Category: ASP.Net
Added: 5/8/2008

 
5: mySql With Asp.Net
Category: Databases
Added: 4/16/2008

 
6: MDF without LDF
Category: Databases
Added: 4/16/2008

 
7: Disable Right Click
Category: Java Script
Added: 4/16/2008

 
8: String Functions
Category: ASP.Net
Added: 3/20/2008

 
9: Water Mark
Category: HTML & DHTML
Added: 3/20/2008

 
10: Ajax With Javascript
Category: AJAX
Added: 3/10/2008

DatagridDatalistRepeater

by Imran 08/May/2008

Differences between Datagrid, Datalist and Repeater?

 

1. Datagrid has paging while Datalist doesnt.

2. Datagrid has built in paging, sorting and editing capabilities which are not there with the other two controls. So if you want users to sort / page / edit data, datagrid is the natural choice.
3.
Datagrid Data can be export to Excel.
 

Datalist has a property called repeat. Direction = vertical/horizontal. (This is of great help in designing layouts). This is not there in Datagrid.

Repeater is the most customizable. No default output

All are similar in that they have a datasource property and ItemCreated, ItemDataBound and ItemCommand events.

 

Features of Datagrid

•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

 

 

 

 



Powered by DotNetClassic.com