laptop and a wrench

Error

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

Última publicación: August 25, 2014 No Product Found
Número de ID del error NIM031460
EnviadoJanuary 18, 2008
Última modificaciónJune 5, 2024
Relacionado conNo Product Found
Versión encontrada9.2
Lenguaje del programaC#
Versión corregida9.3
EstadoFixed

Solución alternativa

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); } } } }

Pasos para reproducir

ID del error: NIM031460

Software:

  • No Product Found

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga