Adding a New Group in LightSwitch 2012

Here we will see how to add a New Group using LightSwitch Visual Studio 2012.

The following is the procedure to add a Group using LightSwitch.

Step 1

Open the LightSwitch Application in Visual Studio 2012 and go to the Solution Explorer.

sol exp.jpg

Right-click on the Data Source and choose "Add Table".

Add table.jpg

The table appears in the table designer window. Insert the records into the following table.

employee.jpg

Step 2

Now once again go to the Solution Explorer, right-click on Screens and choose "Add Screen".

Add src.jpg

The Add New Screen dialog box appears. Select the "Editable Grid Screen" from the Screen Template, under screen information, choose "Employee" under screen data and provide some name to the Screen and click the OK button.

editable.jpg

The Screen Designer appears as shown below.

src desi.jpg

Step 3

Press F5 to run the application. Add a new item to the list.

output1.jpg

Step 4

Stop debugging the application.

Once again, go to the screen designer, in the menu bar click on "Add Layout Item", a drop down list will appear.
Select the Group option from the drop down list. A new group will be added.

add group.jpg

Another way of adding a New Group is to click on "Add";
a drop down list will appear, select "New Group" from the list.

desi src1.jpg

A new group will be added as shown below.

group.jpg

Under the new group we can add various records.

fName.jpg

Step 5

Once again press F5 to run the application. 

out.jpg

Up Next
    Ebook Download
    View all
    Learn
    View all