Select to view content in your preferred language

Result of selection in a datagrid

840
2
03-01-2011 05:28 AM
MarcoRosa
Emerging Contributor
Hi ,
i would like to put into a datagrid the result of selecion on a feature layer ( throught editor tool).
It's possibe to do that ?
Now I'm using for that a FeatureDatagrid. I would like to know if this is possible with datagrid too.
Thanks 1000

GP
0 Kudos
2 Replies
JenniferNery
Esri Regular Contributor
Sure, this is possible. You can subscribe to the Editor's EditCompleted event and check for Editor.EditEventArgs.Action (http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Editor+Edi...) and Editor.EditEventArgs.Edits (http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Editor+Cha...). You should be able to get SelectedGraphics from the layer (edit.Layer or edit.Graphic). If your data grid contains GraphicCollection, you should be able to do something like: dataGrid.SelectedItem = edit.Graphic
0 Kudos
dotMorten_esri
Esri Notable Contributor
0 Kudos