Adding Data to a Blank Screen in LightSwitch Visual Studio 2012

Adding Data to a Blank Screen in LightSwitch Visual Studio 2012

In this article I describe how to add data to a blank screen in LightSwitch using Visual Studio 2012.

The following is the procedure for adding data to a blank screen in LightSwitch using Visual Studio 2012.

Step 1

Open Solution Explorer.

sol explo.jpg

Step 2

In Solution Explorer, right-click on the data source and choose "Add Table".

add table.jpg

Step 3

The table appears.

emp table.jpg

Step 4

In Solution Explorer, right-click on the Screens and choose "Add Screen".

add src.jpg

Step 5

Select the Editable Grid Screen from the Screen Template. Under Screen Information we provide the Screen Name but do not select any Screen Data. Then click "OK".

select screen.jpg

Step 6

The Editable Grid Designer (blank Designer) appears.

blank designer.jpg

Step 7

In the Menu Bar click on "Add Data Item".

add data item.jpg

Step 8

The Add Data Item Dialog box appears.

add data item1.jpg

Step 9

Select the Query option from the Add Data Item.

query.jpg

Step 10

Select the Employee (Name) option under the Query and click "OK".

query.jpg

Step 11

Now we will see that the data has been added to the Screen Designer.

employees.jpg

Up Next
    Ebook Download
    View all
    Learn
    View all