laptop and a wrench

Bogue

ITableView2 allows editing even when setting its property 'AllowEditing' to false.

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM031460
EnvoiJanuary 18, 2008
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.2
Langue du programmeC#
Version de correction9.3
StatutFixed

Solution de contournement

Close the 'Attribute table', create a new TableView object and show it in a Windows Form. Something like: ISet appWindows = ((IApplicationWindows)ArcMap).DataWindows; appWindows.Reset(); for( object dataWindow = appWindows.Next(); dataWindow != null; dataWindow = appWindows.Next()) { if(dataWindow is ITableWindow ) { ITableWindow tableWindow = (ITableWindow)dataWindow; IFeatureClass fClass = tableWindow.FeatureLayer.FeatureClass; if (WorkspaceIsEditable(fClass.FeatureDataset.Workspace)) { ITableControl control = tableWindow.TableControl; if (control != null ) { // create a new TableView object ITableView2 tv = new TableViewClass(); tv.Table = (ITable)tableWindow.FeatureLayer; // close the original ‘attribute table’ IDataWindow2 idw2; idw2 = tableWindow; idw2.Destroy(); // create a Windows Form to show the TableView object Form m_Form = new Form(); Size m_Size=new Size (710, 420); m_Form.Size=m_Size; m_Form.TopMost =true; m_Form.Show(); tagRECT tgr2; tgr2.left = 0; tgr2.top = 0; tgr2.right = 700; tgr2.bottom = 380; tv.Show ((int)m_Form.Handle, ref tgr2, true); } } } }

Étapes pour reproduire

ID de bogue: NIM031460

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement