You
can create that easily with linq queries, that's the purpose of
querying
on
top of a normalized model:

var q = from c in nw.Customers
         join orders o in nw.Orders on c.CustomerID equals
o.CustomerID
         select new { o.OrderID, c.CompanyName};
Correct....but this is a collection of anonymous types...it would be
much nicer if they were explicitly named....can you use named types

It is also possible to do something like

  thegrid.DataSource = nw.Orders;
  thegrid.DataBind();

And then bind columns to specific fields in either Orders or Customers.

Am I the only one here who thinks that the underlying type of a grid
which displays a list of items should be independent of which columns
are being displayed?

Adelle.

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to