<?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: Refresh Currently Open Attribute Table using ArcObjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608890#M16309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i finally found something that worked:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim tableWindow As ESRI.ArcGIS.ArcMapUI.ITableWindow = New ESRI.ArcGIS.ArcMapUI.TableWindow
tableWindow = tableWindow.FindViaFeatureLayer(fLayer, False)
tableWindow.Refresh()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:03:44 GMT</pubDate>
    <dc:creator>DanielJordi</dc:creator>
    <dc:date>2021-12-12T02:03:44Z</dc:date>
    <item>
      <title>Refresh Currently Open Attribute Table using ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608885#M16304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have written an ArcMap Addin (ArcMap 10.0) that allows a user to perform a join between an in-memory table and a feature class (feature layer) added to the TOC. I want the attribute table of the feature layer to automatically refresh after the join occurs if the user happens to have the attribute table visible when performing the join. This way the fields added to the table via the join will be visible to the user without having to close and reopen the Attribute Table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following function is what I have tried to refresh the Attribute Table, but it does not actually refresh the display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;Private Sub RefreshAttributeTable()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Try
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim tableWindow As ITableWindow3 = New TableWindow
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tableWindow.ActiveTableWindow.Refresh()

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My.ArcMap.Document.ActiveView.Refresh()
&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.WriteLine(String.Format("{0}; {1}", ex.Message, ex.StackTrace))

&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try
End Sub&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help with this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 20:01:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608885#M16304</guid>
      <dc:creator>BrianBeck</dc:creator>
      <dc:date>2012-08-29T20:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Currently Open Attribute Table using ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608886#M16305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IMxDocument updateContents&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 20:55:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608886#M16305</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2012-08-29T20:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Currently Open Attribute Table using ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608887#M16306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Leo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just tried that with no luck.&amp;nbsp; I did get it working, but not quite the way I'd like it to.&amp;nbsp; The only way I've been able to update the attribute table using arcobjects is to use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Private Sub RefreshAttributeTable(ByRef featureLayer As IFeatureLayer2)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim tableWindow As ITableWindow3 = New TableWindow

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim existingTable As ITableWindow3
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; existingTable = tableWindow.FindViaLayer(CType(featureLayer, ILayer))

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; existingTable.ShowSelected = Not existingTable.ShowSelected
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; existingTable.ShowSelected = Not existingTable.ShowSelected

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.WriteLine(String.Format("{0}; {1}", ex.Message, ex.StackTrace))

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a little clunky because of the switching between selected and not selected twice, but it does the trick.&amp;nbsp; I just wish I knew what changing the ShowSelected property does behind the scenes to update the window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;IMxDocument updateContents&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:03:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608887#M16306</guid>
      <dc:creator>BrianBeck</dc:creator>
      <dc:date>2021-12-12T02:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Currently Open Attribute Table using ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608888#M16307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Firing ISelectionEvents.SelectionChanged (carto) usually does the trick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/thread.asp?c=93&amp;amp;f=992&amp;amp;t=118750&amp;amp;m=859399#369378"&gt;http://forums.esri.com/thread.asp?c=93&amp;amp;f=992&amp;amp;t=118750&amp;amp;m=859399#369378&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 21:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608888#M16307</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-08-29T21:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Currently Open Attribute Table using ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608889#M16308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Firing ISelectionEvents.SelectionChanged (carto) usually does the trick.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.esri.com/thread.asp?c=93&amp;amp;f=992&amp;amp;t=118750&amp;amp;m=859399#369378"&gt;http://forums.esri.com/thread.asp?c=93&amp;amp;f=992&amp;amp;t=118750&amp;amp;m=859399#369378&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 Sean,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help.&amp;nbsp; I just tried that and it didn't work either.&amp;nbsp; It seems that both suggestions I've seen refresh the map itself, but not the tables held in dockable windows.&amp;nbsp; Is there any documentation about the hierarchy of objects within the attribute table view in ArcMap.&amp;nbsp; For example, There are TableViews, TableControls, TableWindows, TableDockableWindowAdmins.&amp;nbsp; These are related to one another one way or another, but it is unclear exactly how they all interact from the API reference.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 22:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608889#M16308</guid>
      <dc:creator>BrianBeck</dc:creator>
      <dc:date>2012-08-29T22:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Currently Open Attribute Table using ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608890#M16309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i finally found something that worked:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim tableWindow As ESRI.ArcGIS.ArcMapUI.ITableWindow = New ESRI.ArcGIS.ArcMapUI.TableWindow
tableWindow = tableWindow.FindViaFeatureLayer(fLayer, False)
tableWindow.Refresh()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608890#M16309</guid>
      <dc:creator>DanielJordi</dc:creator>
      <dc:date>2021-12-12T02:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Currently Open Attribute Table using ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608891#M16310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub RefreshTableWindows()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim tableWindow3 As ITableWindow3 = New TableWindowClass&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim eSet As ESRI.ArcGIS.esriSystem.ISet = Nothing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tableWindow3.FindOpenTableWindows(eSet)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If eSet.Count &amp;gt; 0 Then&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; eSet.Reset()&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim tw As ITableWindow = CType(eSet.Next, ITableWindow)&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do While tw IsNot Nothing&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If tw.IsVisible Then&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tw.TableControl.RemoveAndReloadCache()&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tw.TableControl.RereadFIDs(Nothing)&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tw.TableControl.Redraw()&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tw = CType(eSet.Next, ITableWindow)&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Catch ex As Exception&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 17:05:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-currently-open-attribute-table-using/m-p/608891#M16310</guid>
      <dc:creator>GünterPrulamp</dc:creator>
      <dc:date>2014-12-12T17:05:13Z</dc:date>
    </item>
  </channel>
</rss>

