读书人

请教这是什么东东导致的

发布时间: 2012-01-30 21:15:58 作者: rapoo

请问这是什么错误导致的
"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没有值


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

读书人网 >C#

热点推荐