laptop and a wrench

Bug

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

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM031460
SubmittedJanuary 18, 2008
Last ModifiedJune 5, 2024
Applies toNo Product Found
Version found9.2
Program languageC#
Version Fixed9.3
StatusFixed

Workaround

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

Steps to Reproduce

Bug ID: NIM031460

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options