Please help: trying to bind the DataGrid to an IList of anonymous type

Feb 22, 2009 at 1:55 AM

 

Sub ManipulateData()
Using data As New Entities
Dim list = (From l In data.Log _
Select [Select] = False, _
LogId = l.LogId, _
Title = l.Title, _
Note = l.Note, _
Employee = l.Employee.Contact.FullName, _
Job = l.Job.JobNo, _
Permit = l.Permit.PermitId & " - " & l.Permit.PermitType.Title, _
Customer = l.Customer.BusinessName, _
Professional = l.Professional.BusinessName, _
Document = l.Document.Name _
).
ToList
'Here I need to know how to set the DataGrid's columns, I already set cols manually and I want to set how it should appear under the appropriate columns (I set AutoGenerateColumn to false).
End Using
End Sub