Hi,
I'm looking for the way to apply an order by in the list of my displayed owners
so i try to use the linq order by like this :
base.TimelineController.CalendarInfo.DataBindingsForOwners.KeyMember = "HouseRecordID"; base.TimelineController.CalendarInfo.DataBindingsForOwners.NameMember = "HouseNo";
base.TimelineController.CalendarInfo.DataBindingsForOwners.DataSource = lstHouseView.OrderBy(p=>p.HouseNo);
doesn't work.
thx
Hi Lahmar,
What is not working exactly, do you get any errors with the code?
Could you please review the sample attached to this post and see if it meets your requirements. Please feel free to let me know if I misunderstood you or if you have any other questions.
I attached my example ...
the message i get is [In current data source there is no column named: HouseRecordID]
only the first line pass; when i want to do a sort i get the error message.
//this.ultraCalendarInfo1.DataBindingsForOwners.DataSource = lstHouses; this.ultraCalendarInfo1.DataBindingsForOwners.DataSource = lstHouses.OrderBy(p=>p.HouseRecordID); //this.ultraCalendarInfo1.DataBindingsForOwners.DataSource = (from r in lstHouses // orderby r.HouseRecordID //