Initialize FeatureDataGrid with a sorted column

496
1
12-31-2010 11:11 AM
LewLadd
New Contributor III
Hi,
  I would like to create a FeatureDataGrid with sorting on one particular column displayed on initialization.

   My understanding based on this link:

http://msdn.microsoft.com/en-us/library/dd833072(v=vs.95).aspx

   is that a PagedCollectionView is used as the ItemSource for the grid, and properties on the PagedCollectionView are set to programmatically set sorting which is reflected in the grid's UI.

  But with a FeatureDataGrid, we don't set the ItemSource property directly. We use the GraphicsLayer property.

  Is it possible to initalize a FeatureDataGrid with sorting on a particular column?

Thanks,
Lew.
0 Kudos
1 Reply
AliMirzabeigi
New Contributor
Unfortunately the current version of the FeatureDataGrid does not support PagedCollectionView as its ItemsSource in which gets populated via its GraphicsLayer property. This is a known limit in the current version and the ItemsSource is an IEnumerable of Graphic objects meaning that the order of items are the same as the order of features that are retrieved from the service.
0 Kudos