<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: datagrid and feature layer sync in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/datagrid-and-feature-layer-sync/m-p/185199#M4603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to synchronize by yourself the graphics selection and the datagrid selection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a sample here : &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2011 09:44:05 GMT</pubDate>
    <dc:creator>DominiqueBroux</dc:creator>
    <dc:date>2011-09-28T09:44:05Z</dc:date>
    <item>
      <title>datagrid and feature layer sync</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/datagrid-and-feature-layer-sync/m-p/185198#M4602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a datagrid bound to a domain data source. The data grid is populated through a RIA domain service. The feature layer is a map service which is as below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer ID="MyFeatureLayer"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="XXX/MapServer/0" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OutFields="OBJECTID, SYS_LOC_CO, X_COORD, Y_COORD, Location, Loc_type"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Renderer="{StaticResource MySimplePointRenderer}"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DisableClientCaching ="True" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MouseLeftButtonUp="FeatureLayer_MouseLeftButtonUp"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is, is it possible to highlight the corrresponding row of the datagrid when the user clicks a graphic on the map? I know it is possible to do so when the datagrid is tied to the feature layer as in this example: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataGrid"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ToolkitFeatureDataGrid&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;But how do I do the same in my case?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 21:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/datagrid-and-feature-layer-sync/m-p/185198#M4602</guid>
      <dc:creator>suharthachowdhury</dc:creator>
      <dc:date>2011-09-27T21:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: datagrid and feature layer sync</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/datagrid-and-feature-layer-sync/m-p/185199#M4603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to synchronize by yourself the graphics selection and the datagrid selection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a sample here : &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 09:44:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/datagrid-and-feature-layer-sync/m-p/185199#M4603</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-09-28T09:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: datagrid and feature layer sync</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/datagrid-and-feature-layer-sync/m-p/185200#M4604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You need to synchronize by yourself the graphics selection and the datagrid selection.&lt;BR /&gt; &lt;BR /&gt;There is a sample here : &lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi dbroux, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tahnk a lot for your reply. I have tried your example, but it does not work for me... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Not sure what I am doing wrong. During debugging I found that, my datagrid.selectedItem is getting the reference to the selected feature layer graphic. But ScrollIntoView() is not responding for some reason... the mouse over/selected graphic is not highlighted in the datagrid. here's my method (Same as in the example):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; private void FeatureLayer_MouseEnter(object sender, GraphicMouseEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; view_KMDataGrid.Focus();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; view_KMDataGrid.SelectedItem = e.Graphic;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; view_KMDataGrid.CurrentColumn = view_KMDataGrid.Columns[0];&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //view_KMDataGrid.UpdateLayout();&amp;nbsp;&amp;nbsp;&amp;nbsp; // tried this too... didn't work&amp;nbsp;&amp;nbsp; view_KMDataGrid.ScrollIntoView(view_KMDataGrid.SelectedItem,view_KMDataGrid.CurrentColumn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help what I am doing wrong.. Thanks for helping.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 15:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/datagrid-and-feature-layer-sync/m-p/185200#M4604</guid>
      <dc:creator>suharthachowdhury</dc:creator>
      <dc:date>2011-09-28T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: datagrid and feature layer sync</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/datagrid-and-feature-layer-sync/m-p/185201#M4605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to tweak&amp;nbsp; the sample since in your case the objects displayed in your datagrid are not the graphics displayed in the map but the objects coming from your RIA domain service (i.e it's not the same instances)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One way may be to use the 'ObjectID' to retrieve the graphics when the selection changes in the datagrid, and, viceversa, to find the row in the datagrid when the selection changes in the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 07:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/datagrid-and-feature-layer-sync/m-p/185201#M4605</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2011-09-29T07:49:32Z</dc:date>
    </item>
  </channel>
</rss>

