One of my lists is not sorting by the field that I would like. Here is the code from the ListConverterService:
private ListConverter MakeMachineListConverter()
EntityQuery aQuery = new EntityQuery(typeof(MachineMaster), MachineMaster.MachineDivisionEntityColumn, EntityQueryOp.EQ, mDivision);
EntityListConverter<MachineMaster> converter = new EntityListConverter<MachineMaster>(EntityManager, EntityPropertyDescriptors.MachineMaster.MachineNumber.Name, Editability.Optional, aQuery, true, ListSortDirection.Ascending, EntityPropertyDescriptors.MachineMaster.MachineIdx.Name);
private ListConverter MakeMachineIdListConverter()
ListConverter converter = CopyConverter<MachineMaster>(ListConverterNames.MachineList);
converter.ValueMember = EntityPropertyDescriptors.MachineMaster.MachineIdx.Name;
I have tried several variations of the creation of the EntityListConverter. None seem to work...all end up with the primary index sort. Can anyone see what I am doing wrong?
Btw, the final control that displays this list is a LookUpEdit control from DevExpress. I have other lists that work beautifully...just not this one. Odd.
Edited by Linguinut - 23-Oct-2007 at 5:20pm