(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .
        Login with Facebook

Use CollectionViewSource in Silverlight to Sort Data

(0 votes)
1 comments   /   posted by Silverlight Show on Jul 26, 2010
Tags:   sorting , c# , xaml , silverlight-4 , paul-sheriff
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.


Comments

  • -_-

    RE: Use CollectionViewSource in Silverlight to Sort Data


    posted by jayesh on Nov 22, 2010 12:26
    I have a data grid and I want to use datapager with it. How can I add data pager with collectionviewsource.???

Add Comment

Login to comment:
  *      *       
Login with Facebook

Our News on Twitter