Click Here To Get Amazing Facebook Profile Covers,Status Messages

difference between repeater and datagrid asp.net

1 reply [Last post]
rahul's picture
rahul
User offline. Last seen 31 weeks 5 days ago. Offline
Joined: 08/21/2009

what are the major differences between repeater control and datagrid control and the specific purpose for which these controls used


rajesh's picture
rajesh
User offline. Last seen 12 weeks 6 days ago. Offline
Joined: 08/17/2009
about datgrid,datalist and repeater control

If you want features like sorting, paging and editing data in your display then Datagrid is advised because datagrid has built in feature for all this.In Reapeater you have to implement these features by writing code.Repeater allows you to have more control over rendered html than datalist and datagrid.

Datagrid is not much flexible or customisable as you can display one record at a time while in case of Repeater you can display as you wish.In terms of flexibility Datalist lies between these two.Datalist is the control which allows you to repeat columns horizonatlly and vertically.Performance wise Repeater is the best but for newbies's datagrid is ok.