I have a database and I\'ve created a DBML Linq-to-SQL file to represent this database. I\'ve created a new aspx page and dropped a linqdatasource and a formview control onto it
Use a custom query
http://weblogs.asp.net/scottgu/archive/2007/09/07/linq-to-sql-part-9-using-a-custom-linq-expression-with-the-lt-asp-linqdatasource-gt-control.aspx
See: Using the Selecting Event