用户代码未处理 System.ArgumentOutOfRangeException
用户代码未处理 System.ArgumentOutOfRangeException
Message=指定的参数已超出有效值的范围。
参数名: rowIndex
Source=System.Windows.Forms
ParamName=rowIndex
StackTrace:
在 System.Windows.Forms.DataGridViewRow.GetState(Int32 rowIndex)
在 System.Windows.Forms.DataGridViewRow.get_Displayed()
在 System.Windows.Forms.DataGridView.OnClearedRows()
在 System.Windows.Forms.DataGridViewRowCollection.OnCollectionChanged_PostNotification(CollectionChangeAction cca, Int32 rowIndex, Int32 rowCount, DataGridViewRow dataGridViewRow, Boolean changeIsDeletion, Boolean changeIsInsertion, Boolean recreateNewRow, Point newCurrentCell)
在 System.Windows.Forms.DataGridViewRowCollection.OnCollectionChanged(CollectionChangeEventArgs e, Int32 rowIndex, Int32 rowCount, Boolean changeIsDeletion, Boolean changeIsInsertion, Boolean recreateNewRow, Point newCurrentCell)
在 System.Windows.Forms.DataGridViewRowCollection.ClearInternal(Boolean recreateNewRow)
在 System.Windows.Forms.DataGridView.OnClearingColumns()
在 System.Windows.Forms.DataGridViewColumnCollection.Clear()
在 System.Windows.Forms.DataGridView.Dispose(Boolean disposing)
在 System.ComponentModel.Component.Dispose()
在 System.Windows.Forms.Control.Dispose(Boolean disposing)
在 System.ComponentModel.Component.Dispose()
在 System.Windows.Forms.Control.Dispose(Boolean disposing)
在 System.ComponentModel.Component.Dispose()
在 System.Windows.Forms.Control.Dispose(Boolean disposing)
在 System.Windows.Forms.ContainerControl.Dispose(Boolean disposing)
在 System.ComponentModel.Component.Dispose()
在 System.Windows.Forms.Control.Dispose(Boolean disposing)
在 System.Windows.Forms.Form.Dispose(Boolean disposing)
在 ZZ.App.Client.UI.MonitorMainForm.Dispose(Boolean disposing) 位置 C:\Documents and Settings\bxzz\桌面\客户端\ZzMonitorSolution\ZZ.App.Client.MonitorDemo\Main\MonitorMainForm.Designer.cs:行号 20
在 System.ComponentModel.Component.Dispose()
在 System.Windows.Forms.ApplicationContext.Dispose(Boolean disposing)
在 System.Windows.Forms.Application.ThreadContext.DisposeThreadWindows()
InnerException:
C#中 的问题,请教 怎么解决呀!