Database Reference
In-Depth Information
Table 9.4
Control Speciications
Control Name
Property
Coniguration
GridView1
AllowPaging
True
AllowSorting
True
AutoGenerateColumns
False
DatakeyName
ClassID
DatasourceID
SqlDataSource1
Width
680 px
lblStatus
Tex t
Status
Table1
Frame
Border
Style
Width: 100%
Width
160 px
FormView1
DataSourceID
SqlDataSource2
DatakeyName
ClassID
Height
200 px
CellPadding
4
ForeColor
#333333
Table 9.5
Action Implementation
Event
Method to Use
Action
Clicking the Delete,
Update, and New links in
FormView1
FormView1_ItemDeleted()
Delete a record in the data
source and write a message
to the Status label.
FormView1_
ItemUpdated()
Update a record in the data
source and write a message
to the Status label.
FormView1_
ItemInserted()
Insert a record in the data
source and write a message
to the Status label.
Clicking the Insert and
Cancel links in FormView1
FormView1 uses the
built-in Insert method
Update the data source with
the edited content.
FormView1 uses the
built-in Cancel method
Not to update the data
source.
Clicking the Select button
in GridView1
GridView1 uses the
built-in Select method
Select a record and pass it to
FormView1 for editing.
 
Search WWH ::




Custom Search