网格视图中的下拉菜单 [英] dropdown in a grid view

查看:79
本文介绍了网格视图中的下拉菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用一个可编辑的网格视图,其中一个列条目应作为下拉列表.
请帮助如何在网格视图中填充下拉菜单.

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.
然后将ComboBoxItems属性绑定到您希望在下拉菜单中具有的选项.
Set your DataGridView ColumnType to DataGridViewComboBoxColumn.
Then bind the Items property of the ComboBox to the options you like to have in the dropdown.


这篇关于网格视图中的下拉菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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