This is something that I can’t believe that I couldn’t find out, please tell me that I am missing something simple ...
I have a datagrid, I populate it with LINQ, as well as a custom class to add data to it.
Subsequently, I need data in a certain order - it seems that they ignore me.
How to change column properties like index etc.
here is the LINQ code I'm using:
thanks in advance...
Dim query = From m In db.details _ Where m.InboundDate >= CType(MonthCalendar1.SelectionStart, DateTime) _ And m.InboundDate <= CType(MonthCalendar1.SelectionEnd, DateTime).AddHours(23).AddMinutes(59) _ And m.ClientNo = 1 _ Join md In db.Manifests On md.ManifestID Equals m.MainID _ Select New GridData With {.manifestID = m.MainID, .InboundDate = m.InboundDate, .Zip = m.Zip, .LadingPkgQty = md.LadingPkgQty, .Weight = m.Weight, .Zone = m.Zone, .Fuel = 23, .LineHaul = Nothing, .Freight = Nothing, .BilledAmount = Nothing, .PackageRate = Nothing, .LTL = Nothing}
source share