<?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 Bind datagrid with Graphics layer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-datagrid-with-graphics-layer/m-p/497135#M12748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI to all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it's possible to bind datagrid with graphics layer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MyGrid.Columns.Add(new DataGridTextColumn() { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; CanUserSort = true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; SortMemberPath = "NAME",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Binding = new System.Windows.Data.Binding("Attributes[NAME]"),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Header = "NAME"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MyGrid.Columns.Add(new DataGridTextColumn());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MyGrid.ItemsSource = MyGraphicLayer.Graphics;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;doesn't work, an error is fired&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MyGraphicLayer has graphics obj with attribute NAME set correctly&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What can be problem ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot GP&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2011 14:53:47 GMT</pubDate>
    <dc:creator>MarcoRosa</dc:creator>
    <dc:date>2011-10-05T14:53:47Z</dc:date>
    <item>
      <title>Bind datagrid with Graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-datagrid-with-graphics-layer/m-p/497135#M12748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI to all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it's possible to bind datagrid with graphics layer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MyGrid.Columns.Add(new DataGridTextColumn() { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; CanUserSort = true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; SortMemberPath = "NAME",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Binding = new System.Windows.Data.Binding("Attributes[NAME]"),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Header = "NAME"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MyGrid.Columns.Add(new DataGridTextColumn());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MyGrid.ItemsSource = MyGraphicLayer.Graphics;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;doesn't work, an error is fired&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MyGraphicLayer has graphics obj with attribute NAME set correctly&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What can be problem ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot GP&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 14:53:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-datagrid-with-graphics-layer/m-p/497135#M12748</guid>
      <dc:creator>MarcoRosa</dc:creator>
      <dc:date>2011-10-05T14:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bind datagrid with Graphics layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-datagrid-with-graphics-layer/m-p/497136#M12749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use FeatureDataGrid and bind GraphicsLayer property as in this SDK sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureDataGrid" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#FeatureDataGrid&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This also works with GraphicsLayer, not just FeatureLayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; &amp;lt;esri:FeatureDataGrid Grid.Row="2" x:Name="MyDataGrid"
&amp;nbsp;&amp;nbsp;&amp;nbsp; Map="{Binding ElementName=MyMap}"
&amp;nbsp;&amp;nbsp;&amp;nbsp; GraphicsLayer="{Binding ElementName=MyMap, Path=Layers.[California]}" /&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:50:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/bind-datagrid-with-graphics-layer/m-p/497136#M12749</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T21:50:58Z</dc:date>
    </item>
  </channel>
</rss>

