Hi David,
What can be done is to register to the DataGridControl's Loaded event and in this method, access the DataGridCollectionView and assign the desired Distinct Value (fetched from DataGridCollectionView.DistinctValues["fieldName"]) to the DataGridCollectionView.AutoFilterValues["fieldName"].
DataGridCollectionView collectionView = testGrid.ItemsSource as DataGridCollectionView;
IList distinctValues = collectionView.DistinctValues[ "MyDateTimeField" ];
// We assume we want the first value of the distinctValues
collectionView.AutoFilterValues[ "MyDateTimeField" ].Add( distinctValues[ 0 ] );
We assign a values present in the DistinctValues to assert the value we add to AutoFilterValues exists in DistinctValues. Else, if the object used to filter is not contained within the DataGridCollectionView, no DataItem will match this filter.
Christian Nadeau
Software Developer
Xceed Software Inc.