Sample Download :
CS Version: http://code.msdn.microsoft.com/CSDynamicallyBuildLambdaExp-d75a695b
VB Version: http://code.msdn.microsoft.com/VBDynamicallyBuildLambdaExp-7f405252
This sample demonstrates how to dynamically build lambda expression and show data into DataGridView Control. This sample shows up multiple conditions jointing together and dynamically generate LINQ TO SQL. LINQ is a great way to declaratively filter and query data in a Type_Safe,Intuitive,and very expressive way. For example, the search feature in this application allows the customer to find all records that meet criteria defined on multiple columns.
You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about sample updates. If it is the first time that you hear about Microsoft All-In-One Code Framework, please watch the introduction video on Microsoft Showcase, or read the introduction on our homepage http://1code.codeplex.com/.