oc A

oc A

  • NA
  • 30
  • 0

DataGrid Sorting in SilverLight

Nov 3 2011 9:07 AM
Hi,

In my SilverLight application , i ve a datagrid in my xaml.
One of the column is
<sdk:DataGridTextColumn Width="150*" Header=" Received"
     Binding="{Binding SentDate, Mode=TwoWay}"  />


I am binding PagedCollectionView to the datagrid. I want to sort based on the SentDate. The code i ve added is MessagesPagedCollectionView.SortDescriptions.Add(new

SortDescription("SentDate", ListSortDirection.Descending)); 

But it is not giving me the result. Is it because the Propertyname and Column Header is different. PLease help

Answers (2)