Select to view content in your preferred language

Datagrid based on group layer

591
1
02-09-2012 12:24 PM
GuruK
by
New Contributor
Hi,

I am new to ArcGIS and need some directions to achieve this.

I have a scenario where I have a group layer which can have multiple graphics layers. Can anyone please let me know if this is possible. this is the code that I got from samples.

<esri:FeatureDataGrid Grid.Row="2" x:Name="MyDataGrid"
    Map="{Binding ElementName=MyMap}"
    GraphicsLayer="{Binding ElementName=MyMap, Path=Layers.[California]}" />

I tried to replace this based on my scenario to

<esri:FeatureDataGrid Grid.Row="2" x:Name="MyDataGrid"
    Map="{Binding ElementName=MyMap}"
    GraphicsLayer="{Binding ElementName=MyMap, Path=Layers.[GroupLayer].ChildLayers}" />

But it didn't work. Please let me know how to make it work.

Thanks in advance
Guru
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
FeatureDataGrid.GraphicsLayer can only be one GraphicsLayer. If your GraphicsLayer is inside a GroupLayer, you can use the following code:
<esri:FeatureDataGrid Grid.Row="2" x:Name="MyDataGrid" 
    Map="{Binding ElementName=MyMap}"
    GraphicsLayer="{Binding ElementName=MyMap, Path=Layers.[MyGroupLayerID].ChildLayers[MySubLayerID]}" />
0 Kudos