2012-09-27 32 views
0

我與桌面Windows應用程序的Infragistics網格一個奇怪的局面。這是Visual Studio 2010中Infragistics的網格設計視圖不適用於觀看

我有幾個網格放置在一個窗體控件。它的工作很好,我能看到兩個代碼隱藏視圖設計器視圖中進行修改。然後幾個其他開發人員使用相同的控件。它仍然運行良好,沒問題。我仍然可以看到並修改後面的代碼。但由於某些原因,我無法訪問和查看設計視圖。它只是給我的錯誤信息:

鍵已經存在參數名:關鍵

這裏是調用堆棧:

在Infragistics.Shared.KeyedSubObjectsCollectionBase.ValidateKeyDoesNotExist(String鍵,IKeyedSubObject ignoreObject) Infragistics.Shared.KeyedSubObjectsCollectionBase.ValidateKey(String key,IKeyedSubObject ignoreObject) at Infragistics.Shared.KeyedSubObjectsCollectionBase.InternalAdd(IKeyedSubObject obj) at Infragistics.Win.UltraWinGrid.ColumnsCollection.InternalAdd(UltraGr idColumn柱) 在Infragistics.Win.UltraWinGrid.UltraGridBand.InitColumns(UltraGridBand [] oldBands) 在Infragistics.Win.UltraWinGrid.UltraGridBand.InitListManager(BindingManagerBase BindingManager的,字符串數據成員,UltraGridBand [] oldBands) 在Infragistics.Win.UltraWinGrid .UltraGridLayout.ListManagerUpdated(BindingManagerBase BindingManager的) 在Infragistics.Win.UltraWinGrid.UltraGridLayout.ListManagerUpdated() 在Infragistics.Win.UltraWinGrid.UltraGridBase.Set_ListManager在(對象newDataSource,字符串newDataMember) Infragistics.Win.UltraWinGrid.UltraGridBase.VerifyDataSourceAttached () 在Infragistics.Win.UltraWinGrid.UltraGridBase.DesignTimeDataSourceInitialization() 在Infragistics.Win.UltraWinGrid.UltraGridBase.OnDesignerHost在System.ComponentModel.Design.DesignerHost.System.ComponentModel System.ComponentModel.Design.DesignerHost.OnLoadComplete(EventArgs e) System.EventHandler.Invoke(對象發件人,EventArgs e) LoadComplete .Design.Serialization.IDesignerLoaderHost.EndLoad(字符串rootClassName,布爾成功,ICollection的errorCollection) 在System.ComponentModel.Design.Serialization.BasicDesignerLoader.OnEndLoad(布爾成功,ICollection的錯誤) 在System.ComponentModel.Design.Serialization.CodeDomDesignerLoader。 OnEndLoad(布爾成功,ICollection錯誤) at System.ComponentModel.Design.Serialization.BasicDesignerLoader.System.ComponentModel.Design.Serialization.IDesignerLoaderService.DependentLoadComplete(Boolean successful,ICollection errorCollection) 在System.ComponentModel.Design.Serialization.BasicDesignerLoader.BeginLoad(IDesignerLoaderHost主機) 在System.ComponentModel.Design.DesignerHost.BeginLoad(DesignerLoader裝載機)

我真的需要查看和修改控制的設計視圖。

我非常感謝,如果有人可以建議如何解決這個問題。

謝謝!

回答

0

好像我能指出問題所在。它是添加拖放方式的數據源對象之一。我打開文件..Designer.cs和手動註釋的所有行吧。設計視圖再次開始工作。

感謝大家正在考慮協助。