void queryTask_ExecuteCompleted(object sender, QueryEventArgs e) { attribWidget.featureDataGrid1.Map = this.MapControl; attribWidget.featureDataGrid1.ItemsSource = e.FeatureSet.Features; } But I have no success neither with DataGrid nor FeatureDataGrid ps: I don't want to make any previous selection on the map, so I don't need a graphic layer. I just want to display attributes on FeatureDataGrid
Code is in post#2 This is all the Binding you will need for FeatureDataGrid. This SDK sample shows how you can add results as graphic to your GraphicsLayer (see code-behind QueryTask_ExecuteCompleted):http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery
<esri:FeatureDataGrid Grid.Row="2" x:Name="MyDataGrid" Map="{Binding ElementName=MyMap}" GraphicsLayer="{Binding ElementName=MyMap, Path=Layers.[MyGraphicsLayerID]}" />
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.