Re: gridview vs Repeater

Chirag Bhavsar replied to praveen sinha at 10-May-08 08:28

Repeater Control

The Repeater control renders a read-only list from a set of records returned from a data source. Like the FormView control, the Repeater control does not specify a built-in layout. Instead you create the layout for the Repeater control using templates.

For more information, see Repeater Web Server Control.

 

The GridView control is the successor to the DataGrid control available in earlier versions of ASP.NET. Along with the added ability to take advantage of the capabilities of data source controls, the GridView control offers improvements such as the ability to define multiple primary key fields, improved user interface customization using bound fields and templates, and a new model for handling or canceling 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

 

Control - Capabilities 

GridView - Read/Edit

DataList - Read/Edit

Repeater - Read Only

DetailsView - Read/Edit/Create

FormView - Read/Edit/Create 

 

Feature

Repeater

DataList

GridView

Table layout

No

No

Yes

Flow layout

Yes

Yes

No

Column layout

No

Yes

No

Style properties

No

Yes

Yes

Templates

Yes

Yes

Columns/optional

Select/ Edit/Delete

No

Yes

Yes

Sort

No

No

Yes

Paging

No

No

Yes


Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  difference between gridview and repeater in asp.net - praveen sinha  10-May-08 07:55 7:55:22 AM
      Comparison - sundar k  10-May-08 08:02 8:02:40 AM
          difference between repeater and gridview - venkata subbarao  21-Nov-08 08:06 8:06:30 AM
      check here... - Vasanthakumar D  10-May-08 08:04 8:04:33 AM
      Diff bet gridview n Repeater - Sujit Patil  10-May-08 08:15 8:15:06 AM
      Re: gridview vs Repeater - Chirag Bhavsar  10-May-08 08:28 8:28:35 AM
      Difference between gridview and repeater - Sanjay Verma  11-May-08 11:59 11:59:05 PM
      Re: gridview vs Repeater - Chirag Bhavsar  12-May-08 12:19 12:19:57 AM
View Posts