网格视图中的下拉菜单 [英] dropdown in a grid view
本文介绍了网格视图中的下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用一个可编辑的网格视图,其中一个列条目应作为下拉列表.
请帮助如何在网格视图中填充下拉菜单.
i want to use a editable grid view in which one column entry should be as dropdown .
pls help how to populate a dropdown in a grid view
推荐答案
将DataGridView ColumnType
设置为DataGridViewComboBoxColumn
.
然后将ComboBox
的Items
属性绑定到您希望在下拉菜单中具有的选项.
Set yourDataGridView ColumnType
toDataGridViewComboBoxColumn
.
Then bind theItems
property of theComboBox
to the options you like to have in the dropdown.
这篇关于网格视图中的下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文