我有一个 datagridviewcomboboxcolumn (ComboCol),我将它添加到 datagridview 中。
I want my ComboCol to display in its dropdown the items of a IList, AND when an item from that list is selected, to assign that value to the property of an object on a different IList.
这可能吗?到目前为止,我所能得到的只是工作的一半。I can display the items of a particular list by setting it as a datasource, but when the item is selected i need to programicaly assign the proper value to the desired object. 有没有办法自动做到这一点?
顺便说一句,如果我将 ComboCol 添加到 datagridview,然后设置 datagridview 的数据源,这对 ComboCol 的数据绑定有何影响?