<?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 FeatureDataGrid Selection Changed Event in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-selection-changed-event/m-p/231448#M5964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to get attributes off of the last selected row but when I try to get that graphic in the selection changed event the graphics collection has not been updated yet.&amp;nbsp; How can I trigger an event when the SelectedGraphics collection changes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2011 16:01:43 GMT</pubDate>
    <dc:creator>BrianGustafson</dc:creator>
    <dc:date>2011-12-15T16:01:43Z</dc:date>
    <item>
      <title>FeatureDataGrid Selection Changed Event</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-selection-changed-event/m-p/231448#M5964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to get attributes off of the last selected row but when I try to get that graphic in the selection changed event the graphics collection has not been updated yet.&amp;nbsp; How can I trigger an event when the SelectedGraphics collection changes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 16:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-selection-changed-event/m-p/231448#M5964</guid>
      <dc:creator>BrianGustafson</dc:creator>
      <dc:date>2011-12-15T16:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureDataGrid Selection Changed Event</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-selection-changed-event/m-p/231449#M5965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use FeatureDataGrid.SelectionChanged event and iterate through e.AddedItems. To convert row to graphic, you can use the following method (add using System.Reflection).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void MyDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
 foreach (var item in e.AddedItems)
 {
&amp;nbsp; var g = GetGraphicSibling(item);
 }
}

private static Graphic GetGraphicSibling(object item)
{
 if (item != null)
 {
&amp;nbsp; MethodInfo mi = item.GetType().GetMethod("GetGraphicSibling");
&amp;nbsp; if (mi != null)
&amp;nbsp;&amp;nbsp; return mi.Invoke(item, null) as Graphic;
 }
 return null;
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:14:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-selection-changed-event/m-p/231449#M5965</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T11:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureDataGrid Selection Changed Event</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-selection-changed-event/m-p/231450#M5966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That gets me what I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 18:10:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-selection-changed-event/m-p/231450#M5966</guid>
      <dc:creator>BrianGustafson</dc:creator>
      <dc:date>2011-12-15T18:10:00Z</dc:date>
    </item>
  </channel>
</rss>

