It is a non-visual
control and is typically used to bind data to the data-bound controls in a consistent
way and can be used for seamless CRUD (Create, Update, Read and Delete)
operations in your applications.
Object Data Source Control Methods
The following are the four main methods of the Object data source control aligned to
the CRUD operations that you need in your applications:
Update Method: This method is used for updating data using the Object data
source control.
??? ??? ??? ???
???
Chapter 1
[ 15 ]
Insert Method: This method is used for inserting data using the Object data
source control.
Select Method: This method is used for reading data using the Object data
source control.
Delete Method: This method is used for deleting data using the Object data
source control.
We would use the Object data source control to bind data to data bound controls
with components that represent data collections, that is, those which return a
set of data. We would use the Object data source control to bind data to a data
bound component with a DataSet instance, a DataReader instance, a WebService
instance that returns Data and a Collection instance. Hence, we would create
a polymorphic method called GetData() that would accept a parameter that
would indicate the source of the data that we need to retrieve the data from.
Pages:
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36