Hi Anthony,
For the crash, could you give me the code snippet that you use when changing your data source, as well as the full stack trace of the error?
As for adding sort columns by code, you need to add them to the DataGridCollectionView's SortCollection.
For example:
DataGridCollectionView source = this.myGrid.ItemsSource as DataGridCollectionView;
source.SortDescriptions.Add( new SortDescription( "ColumnA", ListSortDirection.Ascending ) );
source.SortDescriptions.Add( new SortDescription( "ColumnB", ListSortDirection.Descending ) );
Diane Lafontaine
Technical Support / Technical Support Team Lead
Xceed Software Inc.