Andy Blum

Playing around with LINQ and:

SqlConnection con = new SqlConnection(@"Data Source=.
SQLExpress;Initial Catalog=Northwind;Integrated Security=SSPI");
Northwind db = new Northwind(con);

var q =
from c in db.Employees
where c.EmployeeID == 1
select new { c.FirstName, c.LastName, c.HireDate, c.HomePhone };

dataGridView1.DataSource = q;

This produces a grid as Last Name, Hire Date, First Name, Home Phone.

Why is it a different order then my anonymous type How can I
influence the order of the dataGrid

Re: LINQ Project General LINQ and databinding

Matt Warren - MSFT

We are working fixing this problem. Thanks for pointing it out.

Re: LINQ Project General LINQ and databinding

is it fixed yet will we be able to use it