Quantcast
Channel: Forums - ArcObjects SDKs
Viewing all articles
Browse latest Browse all 1374

Refresh open Table in Arcamp

$
0
0
I "stamp" a position with the GPS-Tool to the Log-File saved in a filegeodatabase. In the map and the table window I always like to show the actual Log-File. I can refresh the view but not the opened table window. I always have to close and open the table window. I tried to refresh the table but nothing seems to have the effect to reload the actual data from the underlying featureclass (log-file). How can refresh the table window?

Code:

Dim pCmdItem As ICommandItem
            Dim pUID As New UIDClass()
            pUID.Value = "{256176AD-0C33-406C-9ED8-9F7AC784A3E3}"
            pCmdItem = My.ArcMap.Application.Document.CommandBars.Find(pUID)
            pCmdItem.Execute()

            Dim tableWindow As ITableWindow3 = New TableWindow
            Dim pSet As ISet = Nothing
            tableWindow.Application = My.ArcMap.Application
            tableWindow.FindOpenTableWindows(pSet)
            pSet.Reset()
            tableWindow = pSet.Next
            While Not tableWindow Is Nothing
                If tableWindow.IsOpen Then                                 
                    tableWindow.TableControl.RemoveAndReloadCache()
                    tableWindow.Refresh()
                End If
                tableWindow = pSet.Next
            End While


Viewing all articles
Browse latest Browse all 1374

Trending Articles