2
Answers

DataGrid Sorting in SilverLight

oc A

oc A

13y
1.5k
1
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)