<?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: How to display attribute table with ArcGIS PRO SDK C#? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811942#M2380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response! I am busy with something else but I will try this ASAP and come back with results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Feb 2020 21:19:55 GMT</pubDate>
    <dc:creator>Amadeus111</dc:creator>
    <dc:date>2020-02-17T21:19:55Z</dc:date>
    <item>
      <title>How to display attribute table with ArcGIS PRO SDK C#?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811938#M2376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to open the attribute table for a selected layer. I was able to create table from a feature layer and have access to it. However, I do not know how to put that into the display like right clicking on the layer and opening the attribute table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;public void create_Layer()&lt;BR /&gt; {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;string shp_path = this.ComboBox_shps.Text;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;int indexNumber = 0;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (shp_path != null &amp;amp;&amp;amp; shp_path != string.Empty)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.Uri shp_filepath = new System.Uri(@shp_path);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;QueuedTask.Run(() =&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var shp_layer = LayerFactory.Instance.CreateLayer(shp_filepath, MapView.Active.Map, indexNumber, &amp;nbsp;&amp;nbsp;&amp;nbsp;shp_path.Substring(16));&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;//Get the active map view.&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var mapView = MapView.Active;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;if (mapView == null)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return Task.FromResult(false);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var selectedLayer = mapView.GetSelectedLayers()[0];&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (selectedLayer is ArcGIS.Desktop.Mapping.FeatureLayer)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ArcGIS.Core.Data.Table a_table = (selectedLayer as FeatureLayer).GetTable();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;int gugu = a_table.GetCount();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MessageBox.Show(gugu.ToString()); // I can get the row count here&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;//Zoom to the selected layers in the TOC&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return mapView.ZoomToAsync(selectedLayer);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 22:18:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811938#M2376</guid>
      <dc:creator>Amadeus111</dc:creator>
      <dc:date>2020-02-11T22:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to display attribute table with ArcGIS PRO SDK C#?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811939#M2377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;There are multiple ways to display the contents of your table. You can use a WPF Datagrid control to display the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is to use the Pro SDK Table Control. Here is a sample that shows how to do that:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/TableControl"&gt;TableControl Sample&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 23:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811939#M2377</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2020-02-11T23:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to display attribute table with ArcGIS PRO SDK C#?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811940#M2378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried TableControl Sample previously. It was giving an error :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Severity Code Description Project File Line Suppression State Error Could not load file or assembly 'ArcGIS.Desktop.DataGrid.Contrib.Wpf, Version=13.1.580.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86' or one of its dependencies. The system cannot find the file specified. TableControl TableControlDockpane.xaml 77&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for creating table control&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;lt;editing:TableControl AutomationProperties.AutomationId="_tableControl" x:Name="tableControl" &lt;BR /&gt; Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"&lt;BR /&gt; TableContent="{Binding Path=TableContent}" &lt;BR /&gt; RowContextMenu="{StaticResource MyRowContextMenu}"&lt;BR /&gt; SelectedRowContextMenu="{StaticResource MyRowContextMenu}"&lt;BR /&gt; &amp;gt;&lt;BR /&gt; &amp;lt;/editing:TableControl&amp;gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;BR /&gt;I tried also using WPF Datagrid but could not figure it out. It&amp;nbsp;tells I am calling the wrong thread.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;ArcGIS.Core.Data.Table a_table = (selectedLayer as FeatureLayer).GetTable();&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;DataGrid_A_Table.DataContext = a_table; // I cann not pass pro table to Datagrid&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;I will check one more time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I even tried pressing hot keys (Ctrl + T) programmatically for selected layer but no luck either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not find the DAML ref ID for that button&amp;nbsp;&lt;IMG __jive_id="482010" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/482010_pastedImage_1.png" /&gt;&amp;nbsp;either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just would like to trigger to open attribute table like right clicking on the layer and click on the attribute table button.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Oz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 14:54:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811940#M2378</guid>
      <dc:creator>Amadeus111</dc:creator>
      <dc:date>2020-02-12T14:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to display attribute table with ArcGIS PRO SDK C#?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811941#M2379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is a button OnClick method that opens the Attribute table for a layer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;protected&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;override&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;OnClick&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; lyrs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; MapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Active&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetLayersAsFlattenedList&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OfType&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;FeatureLayer&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
      MapView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Active&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;SelectLayers&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyrs&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToList&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

      &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; openTableBtnCmd &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FrameworkApplication&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetPlugInWrapper&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"esri_editing_table_openTablePaneButton"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; ICommand&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

      &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;openTableBtnCmd &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
      &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
        &lt;SPAN class="comment token"&gt;// Let ArcGIS Pro do the work for us&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;openTableBtnCmd&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;CanExecute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
          openTableBtnCmd&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Execute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
        &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
      &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;

    &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:32:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811941#M2379</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2021-12-12T09:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to display attribute table with ArcGIS PRO SDK C#?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811942#M2380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response! I am busy with something else but I will try this ASAP and come back with results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2020 21:19:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811942#M2380</guid>
      <dc:creator>Amadeus111</dc:creator>
      <dc:date>2020-02-17T21:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to display attribute table with ArcGIS PRO SDK C#?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811943#M2381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect! It works now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oz&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" height="588" src="https://community.esri.com/legacyfs/online/482560_pastedImage_1.png" style="border: 0px; margin: 2px 20px 0px;" width="965" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:19:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-display-attribute-table-with-arcgis-pro-sdk/m-p/811943#M2381</guid>
      <dc:creator>Amadeus111</dc:creator>
      <dc:date>2020-02-18T20:19:30Z</dc:date>
    </item>
  </channel>
</rss>

