日期:2014-05-18  浏览次数:20990 次

请问这是什么错误导致的
"DataGridView 默认错误"对话框


DataGridView 中发生以下异常

System.IndexOutOfRangeException: 索引12没有值
在System.Windows.Forms.CurrencyManager.get_Item(Int32 index)
在System.Windows.Forms.DataGridView.DataGridViewDataConnection.GetError(Int32 rowIndex)
要替换此默认对话框,请处理DataError事件。

------解决方案--------------------
System.IndexOutOfRangeException: 索引12没有值 


索引越界了.检查一下你的循环怎么做的