Hello,Perhaps this has been covered elsewhere but I found a way of having an initial sorted column in a FeatureDataGrid.
myFeatureDataGrid.AutoGeneratingColumn += (evtsender, args) =>
{
//sort by a specific column, ascending
if (args.PropertyName.Equals("myFieldToHaveInitialSort"))
{
((PagedCollectionView)myFeatureDataGrid.ItemsSource).SortDescriptions.Add(new SortDescription(args.PropertyName, ListSortDirection.Ascending));
}
};
myFeatureDataGrid.GraphicsLayer = myGraphicsLayer;
If there is any better or more concise way to programmatically have an initial sort column, please let me know.Thanks