I have a table with several columns (clm1-clm10). The datagrid is populated with all columns as follows:
MyTableDomainContext context = new MyTableDomainContext();
dataGrid1.ItemsSource = context.DBTables;
context.Load(context.GetDBTablesQuery());
GetDBTablesQuery() is defined in domainservices.cs as follows:
public IQueryable<DBTable> GetDBTables()
{
return this.ObjectContext.DBTables;
}
How can I displayed only two columns (e.g. clm1 and clm5) using the select lambda expression?