Browsing articles from "April, 2008"
Apr
21
2008
.Net // C# // linq

Dynamic load where parameters for linqDatasource

When using an Linq Datasource (linq to sql) for a datagrid (Gridview, ListView, etc) you don’t always want all rows from a table. To exclute data you can use the WhereParameters to add an where statement to your DataSource. You can do limited where statements with the Visual Studio Wizards. When you need more than a limited statement you can dynamicly create an Parameter to add to your Linq DataSource. The following examples shows how to filter the Linq Datasource [...]