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
Do you need any assistance on our toolset?
This is more like a thing related to the .NET data sources types. You could sort your data in some way and then add it to a simple datatable, which our 'UltraCalendarInfo' schedule component would understand.
The Datasource contains a value objects that contains the fields ; i don't undersdand ?
Can you fix me that or give me an example like that without Datatable i want a list of value object that i can sort the Owners.
Hello,
The datasource you are passing to the calendar info is not being recognizable with the fields you are specifying as 'KeyMember' and 'NameMember'. This is the reason why the calendarinfo says there is no such column. If you comment out the 'KeyMember' assignment you will see that you will get the same exception for the 'NameMember'. What is your final goal - is it to sort the owners, just want to be sure and clarify this?
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 //