Prologue:My previous article was about how to create and use the Composed and Scalar Queries in LightSwitch Beta 2. Today we shall discuss how to get the SelectedItem from ListView in LightSwitch Screens.ListView Layout:Previously we discussed Screen Layouts available in LightSwitch Beta 2. At that time I mistakenly did not discuss the ListView layout.ListView layout is something like a GridView or Table layout in which only the first string value field will be displayed.Let us create an application to demonstrate how to get the selected item from a ListView in LightSwitch.Preparing the Solution:Fireup the VS 2010; create a LightSwitch desktop application with the name "WorkingWithListViewInLSBeta2" as shown in the figure. Follow the No: # to create the Project.The Entity Designer:Let us create a table. This new screen of Beta 2 is not available in Beta 1. Select the rounded option to create a new table.After clicking on the "Create new table" option, the Entity Designer will be displayed to create the Entity required. To change the table name simply click on the Header of the Entity Designer and give the name. In our sample application we have given the name as Vehicle.Designing Screens:For this demo application, we need to create three screens. We can add a screen to the Application two ways. Here we are creating the screen from the Solution Explorer. Here,
Hi everyone,This is jagan . Working as Software Engineer for SDL International. Bengaluru, India.Thanks,Be simple & sample - Jaganhttp://www.iamtechmad.com,
C# Corner. All contents are copyright of their authors.