Working with the Data Sources Window

The Data Sources window is a new designer support window in the Visual Studio 2005 IDE. This window lets you quickly set up data binding between controls and data sources using just a few selection and drag-and-drop mouse gestures in the designer. You can create new data sources, generate bound controls from those data sources, and bind data sources to existing controls. You can use the Data Sources window to create data sources from databases, Web services, or objects. Figure 5.1 shows the Data Sources window with the following data sources:

• A data set data source based on the MoneyDB database used for the currency exchange samples in Chapter 4.

® A Web service data source named localhost that references the CustomersService Web service that is included in the download samples for this chapter.

® An object data source based on a CustomersBusinessLayer object hierarchy included in the download samples.

0 0

Post a comment