Saturday, April 16, 2005

Comparison Datagrid,Datalist& Repeater



Both the DataGrid and DataList controls are derived from the WebControl class,

while the Repeater control is derived from the Control class.

The WebControl class contains a number of aesthetic properties, such as BackColor, ForeColor, CssClass, BorderStyle and so on. This means that with the DataGrid and DataList you can specify stylistic settings through the properties it inherits from the WebControl class. The Repeater, however, does not have any such stylistic properties. As we'll discuss in the "Digging Into the Repeater" section, any visual settings to the Repeater's output must be specified in the Repeater's templates.



There are five built-in DataGrid column types:
-------------------------------------------------
Bound Column
Button Column
Edit Column
HyperLink Column
Template Column


Template Supported By DataGrid
-----------------------------------
Item Template,
Header Template,
Footer Template
EditItem Template.

Template Supported By DataList
-----------------------------------
Item Template,
Header Template,
Footer Template
EditItem Template.
selectItem Template
separator Template

1 comment:

Anonymous said...

Nice. Carry on.