Partilhar via


How to: Remove Data Sources from the Data Sources Window

The items in the Data Sources Window are synchronized with your project so removing items from a project will be reflected in the Data Sources window. For example, if your project has a data source based on a Web service, removing the Web reference from your project removes the Web service data source from the Data Sources window.

To remove a database data source from the Data Sources window

  • Select the dataset in Solution Explorer and remove it from the project.

    The corresponding data source disappears from the Data Sources window.

    Note

    If the data source is still visible in the Data Sources window, then click the Refresh button in the window.

To remove a Web service data source from the Data Sources window

  • Right-click each method of the Web service data source in the Data Sources window and choose Remove Object. When you remove the last method, the data source is removed.

    –or-

  • Right-click the Web reference in Solution Explorer, and choose Delete.

To remove an object data source from the Data Sources window

  • Right-click the object data source in the Data Sources window and select Remove Object.

See Also

Concepts

Data Sources Overview

Preparing Your Application to Receive Data

Fetching Data into Your Application

Binding Controls to Data in Visual Studio

Editing Data in Your Application

Validating Data

Saving Data

Other Resources

Data Walkthroughs

Overview of Data Applications in Visual Studio

Connecting to Data in Visual Studio