Select to view content in your preferred language

Change Layers in Featuredatagrid and data extraction

697
0
06-06-2013 06:35 AM
chengbiliu
New Contributor
Hello!

I'm creating a map which contains multiple feature layers which all have different properties. I know that I can only show one of them in featuredatagrid at a time, but is it possible to change the output of featuredatagrid using, say, a scrolldown selection tool among the layers? If I have to create multiple featuredatagrids in XAML linked to different layers, how can I show them based on the user's last selection of a layer?

Here's the XAML code for my featuredatagrid. The layer here is "Fields" but I have other layers such as "boundaries", "animals", etc. 
<esri:FeatureDataGrid Grid.Row="2"
              x:Name="MyDataGrid"
              Map="{Binding ElementName=Map}"
              GraphicsLayer='{Binding ElementName=Map, Path=Layers.[Fields]}'
          DataContext='{Binding}' />


Also, I would like to let the user select and download data from the featuredatagrid. I looked at http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#ExtractData but it is spatial-based. Can I simply let users select features (or the entire layer) and download as they like?

I'm a real rookie of ArcGIS and Silverlight, please help me out! Thanks!
0 Kudos
0 Replies