VB.NET中这种错误是怎么回事?
我将VB.NET中的DataGrid控件绑定到一个Table上,然后对Table中数据进行编辑! 第一次对Table编辑不会出现问题,并能够正常提交到数据库,但当将Table中数据更新后,再进行编辑就会出现如下错误提示! 小生实在不明白是怎么回事,请教各位了!
************** 异常文本 **************
System.IndexOutOfRangeException: 索引超出了数组界限。
at System.Windows.Forms.DataGrid.Edit(String instantText)
at System.Windows.Forms.DataGrid.Edit()
at System.Windows.Forms.DataGrid.OnEnter(EventArgs e)
at System.Windows.Forms.Control.NotifyEnter()
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()