问题描述
您好,
在我的应用程序中,我有以下两个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?
推荐答案
这篇关于VB.Net:共享相同bindingsource的DataGridViewComboBoxColumns不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!