ThdK
ThdK

Reputation: 10546

Data sources tab is missing in visual studio 2010

I started reading the Pro Business Applications with Silverlight 4 and I'm having the following problem here with my visual studio 2010

I can't find the data sources tab page as mentioned here:

When you open the Data Sources window in Visual Studio, you will find that a data source has already been created for each domain context created by RIA Services in the Silverlight project, with the entities that they expose beneath them (as shown in Figure 6-2). Dragging and dropping one of these onto your design surface will create both a DomainDataSource control and a bound control to display the data.

I know that the Data Sources window and Data menu are intentionally disabled in Websites and Web Application Projects but my project is a Silverlight business application.

Can someone tell where i can find this window or what should i do to create the DomainDataSource control and the bound control?

Thanks!

Upvotes: 7

Views: 24119

Answers (5)

Sandesh
Sandesh

Reputation: 1222

You can find this toolbar option in View -> Other Windows -> Data Sources or use

Shift + Alt + D

enter image description here

Upvotes: 0

Pabinator
Pabinator

Reputation: 1641

You may need to build the project that contains your objects before the objects appear in the tree view.

Pablo

Upvotes: 0

Scott
Scott

Reputation: 4331

OK, i got a workaround. For some reason, it only shows up if you do a Silverlight project. So I started a blank solution, added a silverlight project. Bingo - there is the Data Source window. Now, add whatever project you really need.

Upvotes: 0

Stewbob
Stewbob

Reputation: 16899

If you have MainWindow.xaml open, the DataSources tab is normally right next to the Toolbox tab.

enter image description here

If it does not appear there, go to View -> Toolbars, and turn on the Data Design toolbar. Click the Show Data Sources button.

enter image description here

Or just use Shift + Alt + D

Upvotes: 8

Steven Jeuris
Steven Jeuris

Reputation: 19100

When I create an empty project, I am able to access Data Sources as follows:

  • Select a project in the solution explorer. (Not a solution!)
  • The 'Data' menu on the menu bar now allows you to access the data sources for this project, along with other Data Source related options.

Upvotes: 0

Related Questions