Recommended

Skip Navigation LinksHome / News / View News

Use CollectionViewSource in Silverlight to Sort Data

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Jul 26, 2010
(0 votes)
Paul Sheriff demonstrates two ways of using the CollectionViewSource to sort data. The first one is in XAML and in the second post Paul is using code.

If you are using Silverlight's ListBox control, you do not have to write code to sort your data. Instead you can use the built-in CollectionViewSource object in XAML to perform the sorting for you. This assumes that you are using a collection that implements the IEnumerable or IList interfaces.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 5 and 5 and type the answer here:

Join the free SilverlightShow webinar 'Silverlight's Power Features: Data Binding in Action' on August 19th 2010, 10:00 am PDT.
In this session Gill Cleeren will make with a complete overview of the data binding features Silverlight 4 has to offer. He will discuss how data binding is the enabler for applying the MVVM pattern and commanding, and will end up reviewing Blend's support for data binding, including the use of design-time data. Read more | Register Now (hide this)