<?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: FeatureDataGrid Sample Error... in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86814#M2115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using this sample? &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/1.2/samples/start.htm#FeatureDataGrid"&gt;http://help.arcgis.com/en/webapi/silverlight/1.2/samples/start.htm#FeatureDataGrid&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you had been using the samples from v2.1: &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;SPAN&gt;. The XAML Parse Exception could be caused by the Binding statements that are not yet supported in VS 2008. If you were using the latter sample, please use the first link instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2011 15:39:54 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-03-14T15:39:54Z</dc:date>
    <item>
      <title>FeatureDataGrid Sample Error...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86813#M2114</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;SPAN&gt;I am trying to use FeatureDataGrid sample from the Interactive Samples...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting Error : "Sys.InvalidOperationException: ManagedRuntimeError erro #4004 in control 'Xaml1'. System.Windows.Markup.XamlParseException:.........." &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using VS2008 with Silverlight 3.0V and ArcGIS API 1.2V..( i have to work on this environment only..)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can any one help me out in this issue..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 06:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86813#M2114</guid>
      <dc:creator>GirishS1</dc:creator>
      <dc:date>2011-03-14T06:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureDataGrid Sample Error...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86814#M2115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using this sample? &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/1.2/samples/start.htm#FeatureDataGrid"&gt;http://help.arcgis.com/en/webapi/silverlight/1.2/samples/start.htm#FeatureDataGrid&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you had been using the samples from v2.1: &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;SPAN&gt;. The XAML Parse Exception could be caused by the Binding statements that are not yet supported in VS 2008. If you were using the latter sample, please use the first link instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 15:39:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86814#M2115</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-14T15:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureDataGrid Sample Error...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86815#M2116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply.. I am using the first link...&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/sil...eatureDataGrid"&gt;http://help.arcgis.com/en/webapi/sil...eatureDataGrid&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even though i m getting the same error.. can you please share me how to bind the layers to FeatureDataGrid in code behind... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you using this sample? &lt;A href="http://help.arcgis.com/en/webapi/silverlight/1.2/samples/start.htm#FeatureDataGrid"&gt;http://help.arcgis.com/en/webapi/silverlight/1.2/samples/start.htm#FeatureDataGrid&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;If you had been using the samples from v2.1: &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;. The XAML Parse Exception could be caused by the Binding statements that are not yet supported in VS 2008. If you were using the latter sample, please use the first link instead.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 03:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86815#M2116</guid>
      <dc:creator>GirishS1</dc:creator>
      <dc:date>2011-03-15T03:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureDataGrid Sample Error...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86816#M2117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should be using the 1.2 sample (1st link from post#2).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the key differences in the two samples:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in 1.2 (VS 2008)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esriToolkit:FeatureDataGrid Grid.Row="2" x:Name="MyDataGrid"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Map="{Binding ElementName=MyMap}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; GraphicsLayer="{Binding ElementName=MyMap, Path=Layers.[1]}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in 2.0 (VS 2010)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;esri:FeatureDataGrid Grid.Row="2" x:Name="MyDataGrid"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Map="{Binding ElementName=MyMap}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; GraphicsLayer="{Binding ElementName=MyMap, Path=Layers.[California]}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The equivalent code-behind binding is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Binding mapBinding = new Binding();
mapBinding.Source = MyMap;
MyDataGrid.SetBinding(FeatureDataGrid.MapProperty, mapBinding);

Binding graphicsLayerBinding = new Binding("Layers.[1]");
graphicsLayerBinding.Source = MyMap;
MyDataGrid.SetBinding(FeatureDataGrid.GraphicsLayerProperty, graphicsLayerBinding);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you don't require binding, you can simply set these properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
MyDataGrid.Map = MyMap;
MyDataGrid.GraphicsLayer = MyMap.Layers[1] as GraphicsLayer;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:00:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86816#M2117</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-12T16:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureDataGrid Sample Error...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86817#M2118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jennifer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to bind the featuredatagrid from code behind on page load.. still the same error persists.. i dont no what i am doing wrong can you please check this code and let me know...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my Code behind code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &lt;BR /&gt;public partial class Page : UserControl&amp;nbsp; &lt;BR /&gt; {&amp;nbsp; &lt;BR /&gt; public Page()&amp;nbsp; &lt;BR /&gt; {&amp;nbsp; &lt;BR /&gt; InitializeComponent();&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; MyDataGrid.Visibility = Visibility.Visible;&amp;nbsp; &lt;BR /&gt; Binding mapBinding = new Binding();&amp;nbsp; &lt;BR /&gt; mapBinding.Source = MyMap;&amp;nbsp; &lt;BR /&gt; MyDataGrid.SetBinding(FeatureDataGrid.MapProperty, mapBinding);&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; Binding graphicsLayerBinding = new Binding("Layers.[1]");&amp;nbsp; &lt;BR /&gt; graphicsLayerBinding.Source = MyMap;&amp;nbsp; &lt;BR /&gt; MyDataGrid.SetBinding(FeatureDataGrid.GraphicsLayerProperty, graphicsLayerBinding);&amp;nbsp; &lt;BR /&gt; MyDataGrid.UpdateLayout();&amp;nbsp; &lt;BR /&gt; }&amp;nbsp; &lt;BR /&gt; private void FeatureLayer_MouseLeftButtonDown(object sender, Graphic graphic, MouseButtonEventArgs args)&amp;nbsp; &lt;BR /&gt; {&amp;nbsp; &lt;BR /&gt; graphic.Selected = !graphic.Selected;&amp;nbsp; &lt;BR /&gt; if (graphic.Selected)&amp;nbsp; &lt;BR /&gt; MyDataGrid.ScrollIntoView(graphic, null);&amp;nbsp; &lt;BR /&gt; }&amp;nbsp; &lt;BR /&gt; }&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my Xaml code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; &amp;lt;UserControl x:Class="SilverlightApplication2.Page"&amp;nbsp; &lt;BR /&gt; xmlns="&lt;A href="http://schemas.microsoft.com/winfx/2006/xaml/presentation" target="_blank"&gt;http://schemas.microsoft.com/winfx/2006/xaml/presentation&lt;/A&gt;"&amp;nbsp;&amp;nbsp; &lt;BR /&gt; xmlns:x="&lt;A href="http://schemas.microsoft.com/winfx/2006/xaml" target="_blank"&gt;http://schemas.microsoft.com/winfx/2006/xaml&lt;/A&gt;"&amp;nbsp;&amp;nbsp; &lt;BR /&gt; xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"&amp;nbsp;&amp;nbsp; &lt;BR /&gt; xmlns:sys="clr-namespace:System;assembly=mscorlib"&amp;nbsp; &lt;BR /&gt; xmlns:esri="clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client"&amp;nbsp; &lt;BR /&gt; xmlns:esriSymbols="clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client"&amp;nbsp; &lt;BR /&gt; xmlns:esriToolkit="clr-namespace:ESRI.ArcGIS.Client.Toolkit;assembly=ESRI.ArcGIS.Client.Toolkit" &amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;Grid x:Name="LayoutRoot" Background="White"&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;Grid.Resources&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;esriSymbols:SimpleFillSymbol x:Name="SelectSymbol"&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;esriSymbols:SimpleFillSymbol.ControlTemplate&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;ControlTemplate&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;Path x:Name="Element" Fill="#330000FF" Stroke="Black" StrokeThickness="1"&amp;nbsp; &lt;BR /&gt; Cursor="Hand"&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;VisualStateManager.VisualStateGroups&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;VisualStateGroup x:Name="SelectionStates"&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;VisualState x:Name="Unselected" /&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;VisualState x:Name="Selected"&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;Storyboard&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;ColorAnimation Storyboard.TargetName="Element"&amp;nbsp; &lt;BR /&gt; Storyboard.TargetProperty="(Path.Fill).(SolidColorBrush.Color)"&amp;nbsp;&amp;nbsp; &lt;BR /&gt; To="#99FFFF00" Duration="0:0:.25" /&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;ColorAnimation Storyboard.TargetName="Element"&amp;nbsp; &lt;BR /&gt; Storyboard.TargetProperty="(Path.Stroke).(SolidColorBrush.Color)"&amp;nbsp;&amp;nbsp; &lt;BR /&gt; To="#9900FFFF" Duration="0:0:.25" /&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;DoubleAnimation Storyboard.TargetName="Element"&amp;nbsp;&amp;nbsp; &lt;BR /&gt; Storyboard.TargetProperty="StrokeThickness"&amp;nbsp; &lt;BR /&gt; To="3" Duration="00:00:.25" /&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/Storyboard&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/VisualState&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/VisualStateGroup&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/VisualStateManager.VisualStateGroups&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/Path&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/ControlTemplate&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/esriSymbols:SimpleFillSymbol.ControlTemplate&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/esriSymbols:SimpleFillSymbol&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/Grid.Resources&amp;gt;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &amp;lt;Grid.RowDefinitions&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;RowDefinition Height="*" /&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;RowDefinition Height="5" /&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;RowDefinition Height="150" /&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/Grid.RowDefinitions&amp;gt;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; &amp;lt;esri:Map x:Name="MyMap" Background="White" Extent="-125,32,-114,42"&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;esri:Map.Layers&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer"&amp;nbsp; &lt;BR /&gt; Url="&lt;A href="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" target="_blank"&gt;http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer&lt;/A&gt;"/&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;esri:FeatureLayer FeatureSymbol="{StaticResource SelectSymbol}"&amp;nbsp; &lt;BR /&gt; Url="&lt;A href="http://serverapps.esri.com/ArcGIS/rest/services/California/MapServer/8" target="_blank"&gt;http://serverapps.esri.com/ArcGIS/rest/services/California/MapServer/8&lt;/A&gt;"&amp;nbsp; &lt;BR /&gt; MouseLeftButtonDown="FeatureLayer_MouseLeftButtonDown"&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;esri:FeatureLayer.OutFields&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;sys:String&amp;gt;*&amp;lt;/sys:String&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/esri:FeatureLayer.OutFields&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/esri:FeatureLayer&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/esri:Map.Layers&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/esri:Map&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;basics:GridSplitter Grid.Row="1" HorizontalAlignment="Stretch" /&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;esriToolkit:FeatureDataGrid Grid.Row="2" x:Name="MyDataGrid" Visibility="Collapsed"/&amp;gt;&amp;nbsp; &lt;BR /&gt; &amp;lt;/Grid&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;lt;/UserControl&amp;gt;&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not getting where i am doing the mistake...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the error message i am getting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; System.Windows.Markup.XamlParseException: System.Windows.Markup.XamlParseException: System.Windows.Markup.XamlParseException: System.Windows.Markup.XamlParseException: System.Windows.Markup.XamlParseException: AG_E_PARSER_BAD_TYPE [Line: 89 Position: 164]&amp;nbsp; &lt;BR /&gt; at MS.Internal.XcpImports.CheckHResult(UInt32 hr)&amp;nbsp; &lt;BR /&gt; at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)&amp;nbsp; &lt;BR /&gt; at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)&amp;nbsp; &lt;BR /&gt; at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single&amp;amp; outWidth, Single&amp;amp; outHeight) [Line: 0 Position: 0]&amp;nbsp; &lt;BR /&gt; at MS.Internal.XcpImports.CheckHResult(UInt32 hr)&amp;nbsp; &lt;BR /&gt; at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)&amp;nbsp; &lt;BR /&gt; at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)&amp;nbsp; &lt;BR /&gt; at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single&amp;amp; outWidth, Single&amp;amp; outHeight) [Line: 0 Position: 0]&amp;nbsp; &lt;BR /&gt; at MS.Internal.XcpImports.CheckHResult(UInt32 hr)&amp;nbsp; &lt;BR /&gt; at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)&amp;nbsp; &lt;BR /&gt; at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)&amp;nbsp; &lt;BR /&gt; at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single&amp;amp; outWidth, Single&amp;amp; outHeight) [Line: 0 Position: 0]&amp;nbsp; &lt;BR /&gt; at MS.Internal.XcpImports.CheckHResult(UInt32 hr)&amp;nbsp; &lt;BR /&gt; at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)&amp;nbsp; &lt;BR /&gt; at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)&amp;nbsp; &lt;BR /&gt; at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single&amp;amp; outWidth, Single&amp;amp; outHeight) [Line: 0 Position: 0]&amp;nbsp; &lt;BR /&gt; at MS.Internal.XcpImports.CheckHResult(UInt32 hr)&amp;nbsp; &lt;BR /&gt; at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)&amp;nbsp; &lt;BR /&gt; at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)&amp;nbsp; &lt;BR /&gt; at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single&amp;amp; outWidth, Single&amp;amp; outHeight) [Line: 0 Position: 0]&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; You should be using the 1.2 sample (1st link from post#2).&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;One of the key differences in the two samples:&amp;nbsp; &lt;BR /&gt;in 1.2 (VS 2008)&amp;nbsp; &lt;BR /&gt;&amp;lt;esriToolkit:FeatureDataGrid Grid.Row="2" x:Name="MyDataGrid"&amp;nbsp; &lt;BR /&gt; Map="{Binding ElementName=MyMap}"&amp;nbsp; &lt;BR /&gt; GraphicsLayer="{Binding ElementName=MyMap, Path=&amp;nbsp; &lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;Layers.[1]&lt;/SPAN&gt;}" /&amp;gt;&amp;nbsp; &lt;BR /&gt;in 2.0 (VS 2010)&amp;nbsp; &lt;BR /&gt;&amp;lt;esri:FeatureDataGrid Grid.Row="2" x:Name="MyDataGrid"&amp;nbsp; &lt;BR /&gt; Map="{Binding ElementName=MyMap}"&amp;nbsp; &lt;BR /&gt; GraphicsLayer="{Binding ElementName=MyMap, Path=&amp;nbsp; &lt;SPAN style="color:&amp;quot;red&amp;quot;;"&gt;Layers.[California]&lt;/SPAN&gt;}" /&amp;gt;&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;The equivalent code-behind binding is:&amp;nbsp; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Binding mapBinding = new Binding();
mapBinding.Source = MyMap;
MyDataGrid.SetBinding(FeatureDataGrid.MapProperty, mapBinding);

Binding graphicsLayerBinding = new Binding("Layers.[1]");
graphicsLayerBinding.Source = MyMap;
MyDataGrid.SetBinding(FeatureDataGrid.GraphicsLayerProperty, graphicsLayerBinding);
&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;If you don't require binding, you can simply set these properties:&amp;nbsp; &lt;BR /&gt; &lt;PRE class="lia-code-sample line-numbers language-none"&gt;
MyDataGrid.Map = MyMap;
MyDataGrid.GraphicsLayer = MyMap.Layers[1] as GraphicsLayer;
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:19:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86817#M2118</guid>
      <dc:creator>GirishS1</dc:creator>
      <dc:date>2021-12-10T23:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureDataGrid Sample Error...</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86818#M2119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your code looks exactly like the 1.2 FeatureDataGrid sample minus the Binding statement. You can debug through it to see if InitializeComponent() is completed. If exception is thrown before it reaches the Binding statements in code-behind, then take one code at a time. Maybe remove VisualStateGroup on your symbol and see if XamlParseException persists.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 15:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featuredatagrid-sample-error/m-p/86818#M2119</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-03-16T15:14:01Z</dc:date>
    </item>
  </channel>
</rss>

