例外:DataTable内部索引已损坏:'5'。上 ... [英] Exception: DataTable internal index is corrupted: '5'. on ...

查看:95
本文介绍了例外:DataTable内部索引已损坏:'5'。上 ...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在framework 2.0中遇到绑定源组件的问题。

    Hi, I have a problem with bindingsource component in framework 2.0.

我有一个绑定到绑定源的组合框还绑定到具有2个相关表的数据集和绑定到同一绑定源的datagridview。我想要做的是:当我的组合框的selectedindex属性发生变化时,必须在datagridview中更改相应的单元格值。但是虽然bindingsource中的值发生了更改,但datagridview不会显示新值。将鼠标移到该单元格上并使其手动使其区域无效后,将显示该值。

I have a combobox bound to a bindingsource which is also bound to a dataset with 2 related tables and a datagridview bound to the same bindingsource. What I want to do is : When the selectedindex property of my combobox changes, the corresponding cell value must be changed in the datagridview. But although the value in bindingsource changes, datagridview does not display the new value. That value is displayed after I move the mouse over that cell and make it invalidate its region manually.

我发现的另一个错误是您可以看作我帖子主题的错误。当我尝试以编程方式更改((DataRowView)mybindingsource.Current)[" MyProperty"]的属性时,我不知道为什么会收到该消息。

Another error I caught is the one that you can see as the subject of my post. I do not know why i have that message when I try to change the property of ((DataRowView)mybindingsource.Current)["MyProperty"] programmatically.

如果有人,我将不胜感激可以帮我。

I will be grateful if someone can help me.

推荐答案

发布内部索引损坏的代码示例问题,这听起来就像一个bug。

Post a code example for the internal index is corrupted issue, this sounds like a bug.

对不起,我无法帮你解决绑定问题。

Sorry I can't help you on the binding issue.


这篇关于例外:DataTable内部索引已损坏:'5'。上 ...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆