VB.Net:共享相同bindingsource的DataGridViewComboBoxColumns不起作用 [英] VB.Net : DataGridViewComboBoxColumns sharing same bindingsource does not work

查看:138
本文介绍了VB.Net:共享相同bindingsource的DataGridViewComboBoxColumns不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



在我的应用程序中,我有以下两个datagridviews:

- 两个datagridviews都绑定

- 这两个datagridviews都有一个名为'Message Type'的列。

- 这两列都是comboboxcolumns

- 两个comboboxcolumns都绑定到BindingSourceXML_MESSAGE_TYPE(MessageType)



我启动/调试我的应用程序的那一刻我得到'System.ArgumentException:DataGridViewComboBoxCell值无效'



如果我将两个datagridviews中的任何一个的columntype更改回普通文本框并且我启动/调试然后打开/调试没有问题。



它是如果BindingSourceXML_MESSAGE_TYPE不想在datagridviews之间共享。



有什么建议吗?

Hello,

In my application I have two datagridviews with the following:
- Both datagridviews are bound
- Both these datagridviews have a column called 'Message Type'.
- Both these columns are comboboxcolumns
- Both comboboxcolumns are bound to BindingSourceXML_MESSAGE_TYPE (MessageType)

The moment I start/debug my application i get 'System.ArgumentException: DataGridViewComboBoxCell value is not valid'

If I change the columntype for any one of the two datagridviews back to a normal textbox and I start/debug then it opens/debugs without problems.

It is as if the BindingSourceXML_MESSAGE_TYPE does not want to be "shared" between datagridviews.

Any advice?

推荐答案

在这里找到问题的答案:



http://social.msdn.microsoft.com/Forums/windows/en-US / 88c3adee-ed2a-41ee-9407-c3314588e08a / problem-with-value-datagridviewcomboboxcell?prof = required
Found the answer to the problem here:

http://social.msdn.microsoft.com/Forums/windows/en-US/88c3adee-ed2a-41ee-9407-c3314588e08a/problem-with-value-datagridviewcomboboxcell?prof=required


这篇关于VB.Net:共享相同bindingsource的DataGridViewComboBoxColumns不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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