CompositeDataBound
Class:
It’s
abstract base class. It implements INamingContainer
interface.
GridView
Control:
GridView generates
data in tabular format. It provides easy paging, sorting, and editing.
GridView => Rows (GridViewRow) => Cells (DataControlFieldCell)
=> Columns
(DataControlField)
When
a row is created InitializeRow() is called that creates cell and calls
InitializeCell method that creates DataControlFieldCell. Columns class inherits
form DataControlField and overrides the InitializeCell method.
TemplateColumn,
BoundColumn etc inherit from DataControlField to create DataControlFieldCell.
IStateManager
IDataSourceViewSchemaAccessor
O------
DataControlField
+-->TemplateField
+--> HyperlinkField
+--> ImageField
+--> BoundField
+-->
AutoGenrateField
+-->
CheckBoxField
+--> ButtonFieldBase
+-->
ButtonField
+--> CommandField
RowCreated
and RowDatabound events are used to programmatically alter the Row and Cell
Style.
DetailsView
Control:
Shows
Single record from DataSource. It allows edit, Delete and insert. AllowPaging
property allows auto paging. Formatting capabilities are same as GridView.
FormView
Control:
It’s just
like the DetailsView to display a single record. It allows user defined
templates for inserting, updating and Deleting.
|
|
|
Select
|
Edit
|
Delete
|
New
|
Auto Generate
Edit / Delete
|
Edt/New
Templates
|
Tabular Display
|
Form Display
|
Grid of Items
View
|
Persists View
State
|
Custom UI
|
|
2
|
Table/HTML
Table
|
|
|
|
|
|
|
.
|
.
|
|
|
|
|
3
|
Repeater
|
|
|
|
|
|
|
|
|
|
|
|
|
4
|
XML Control
|
|
|
|
|
|
|
.
|
.r
|
|
|
|
|
6
|
DataList
|
|
|
cn
|
|
|
|
|
|
|
|
|
|
6
|
DetailsView
|
|
|
|
|
|
|
|
.
|
|
|
|
|
6
|
FormView
|
|
cn
|
cn
|
cn
|
|
|
|
.
|
|
|
|
|
7
|
GridView
|
|
|
|
|
|
|
.
|
|
|
|
|
|
9
|
ListView
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Control
|
Functionalities
|
|
2
|
Table/HTML Table
|
Tabular + Form Display
|
|
3
|
Repeater
|
Item Select + Custom UI + Persistence
|
|
4
|
XML Control
|
Tabular + Form® + CustomUI + Grid of
Items
|
|
6
|
DataList
|
Item Select + Edit + Delete + Edit/New
Templates + Persistence
|
|
6
|
DetailsView
|
Form View + Edit + Delete+ New + Auto
Generate Edit/New/Delete Button+
Persistence
|
|
6
|
FormView
|
Form View + Edit + Delete+ New + Auto
Generate Edit/New/Delete Button+
Persistence
|
|
7
|
GridView
|
Form View + Edit(cn) + Delete(cn)+
New(cn) + Edit/New Templates+ Persistence
|
|
9
|
ListView
|
Select Item + Tabular Display + Form
Display + Custom UI + Grid of Items View + Edit + Delete + Edt/New Templates
+ New + Auto Generate Edit / Delete + Persists View State
|
cn
Operation supported by Command Name (“edit”, “new”, “delete”)
® r
Readonly