控制datagridview中未绑定的组合框下拉内容 [英] Control unbound combo box drop down contents in datagridview

查看:141
本文介绍了控制datagridview中未绑定的组合框下拉内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个未绑定的网格,其中包含一个代表牙医的组合框.这个未绑定的组合框充满了类似以下的代码

I have a an unbound grid which includes a combo box which represents dentists. This unbound combo box is filled with code like the following

            intDoctorID.DataSource = dstgDoctorAll.Tables(0)
            intDoctorID.DisplayMember = DFN_nvcDoctorName
            intDoctorID.ValueMember = DFN_intDoctorID

尽管我希望所有牙医都显示在网格上,但我想将下拉列表选择限制为活动的牙医,无论如何不是所有的牙医都可以.

Although I want ALL dentists to be displayed on the grid, I want to restrict the dropdown selection to the active dentists, in any case not all dentists.

是否可以使用Microsoft的Datagridview做到这一点?

Is there a way to do this with Microsoft's Datagridview?

推荐答案

嗨JohnPapa,

>>尽管我希望所有牙医都显示在网格中,但我想限制下拉菜单选择在职牙医,无论如何不是所有牙医.

根据您的描述,我不确定您的意思.请问您能详细介绍一下您的问题/问题吗?这将有助于我们更清楚地分析和诊断此问题.

According to your description, I am not sure what you mean. Could you please describe more about your problem/issue? It will help us analyze and diagnose this issue more clearly.

最好的问候,

Neda Zhang

Neda Zhang


这篇关于控制datagridview中未绑定的组合框下拉内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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