Print Page | Close Window

Sorting NavigationProperties

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2130
Printed Date: 10-Jun-2026 at 5:39pm


Topic: Sorting NavigationProperties
Posted By: Waahnsinn
Subject: Sorting NavigationProperties
Date Posted: 05-Sep-2010 at 11:45am
Hello!

I've got a question on sorting NavigationProperties.

Lets say I have a BusinessObject (Panel) which includes a NavigationProperty with the Name Tasks.
I'm binding this NavigationProperty to a SilverlightControl and I want to Display the Tasks sorted by one Property.

How can I do this?
PropertyInterceptors?

Thank You for your answer.

Rainer



Replies:
Posted By: ting
Date Posted: 07-Sep-2010 at 7:10pm
If you need to operate on the collection in the UI, you should put the entities into an ObservableCollection and then you can implement sort on the list.  This link talks about how to do this with an extension method or by subclassing.  Check out the June 3, 2010 post at the bottom:
http://social.msdn.microsoft.com/forums/en-US/wpf/thread/5909dbcc-9a9f-4260-bc36-de4aa9bbd383/ - http://social.msdn.microsoft.com/forums/en-US/wpf/thread/5909dbcc-9a9f-4260-bc36-de4aa9bbd383




Print Page | Close Window