首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

请教这是什么东东导致的

2012-01-30 
请问这是什么错误导致的DataGridView 默认错误对话框DataGridView 中发生以下异常System.IndexOutOfRang

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


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

热点排行