Thx for your Answer but it didn't work.
I wrote my own Comparer-Class and set the "SortComparer" Property like Xceed did it in Example 5. For debug i set an Breakpoint at my Comparer-Class but at Runtime it was never used.
Code:
DataGridItemProperty oItemProperty = new DataGridItemProperty();
oItemProperty.Name = oViewField.FieldName;
oItemProperty.Title = oViewField.Caption;
oItemProperty.DataType = cvf.LastFieldProperty.DataType;
oItemProperty.CalculateDistinctValues = oViewField.DistinctValues;
oItemProperty.SortComparer = new StringComparer();
this.ViewSource = new DataGridVirtualizingCollectionViewSource();
this.ViewSource.QueryItems += new EventHandler<QueryItemsEventArgs>(DataGridVirtualizingCollectionViewSource_QueryItems);
this.ViewSource.QueryItemCount += new EventHandler<QueryItemCountEventArgs>(DataGridVirtualizingCollectionViewSource_QueryItemCount);
this.ViewSource.AutoCreateItemProperties = false;
this.ViewSource.AutoFilterMode = AutoFilterMode.And;
// Bind the DataGrid to the DataGridControl
Binding b = new Binding() { Source = this.ViewSource };
this.dgc.SetBinding(DataGridControl.ItemsSourceProperty, b);
Do i something wrong?