Create DataGrid from database named atm with Customers with fields Name, CustomerID and Accounts having field CustomerID, Type, Amount, Account Number
var dataGrid = new DataGrid(); dataGrid.setSource( from c in Customers from a in Accounts.Where(x => x.CustomerID == c.CustomerID) select new {c.Name, a.Type, a.Amount, a.AccountNumber} );