VB.NET中这种错误是怎么回事?

boyjcc boyjcc 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我将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()
...全文
评论 3
收藏 已收藏
分享
返回顶部
boyjcc
VB 16,718 成员 110,520 内容