How to Search Data Using LightSwitch 2012

This article demonstrates how to search data of a list of data using LightSwitch 2012.

Before going further I would highly recommend reading this article first to learn what LightSwitch is and how to load and show data. Getting Started With LightSwitch 2012

After an external data source has been attached it looks like this:

img1.jpg

Image 1.

Now add a Search Data Screen and edit the name of the screen and select some screen data from the drop down and click OK.

img2.jpg

Image 2.

Screen Designer looks like this; here you can change properties and you can add new columns and delete data.

img3.jpg

Image 3.

Now run the application.

img4.jpg

Image 4.

As you can see there is a search text box on top of the grid. Now let's search for something.

img5.jpg

Image 5.

You can export searched records in the Excel file after clicking the "Export" button.

img6.jpg

Image 6.


Similar Articles