在组合框中获取displaymember的数据 [英] getting data of displaymember in a combo box
本文介绍了在组合框中获取displaymember的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
在我的应用程序中,我正在使用组合框和绑定数据来显示成员和值成员.
我可以使用
获取所选的值
Combo1.SelectedValue.ToString
但我无法获取显示值.
谁能帮帮我.
预先大于thanx
hi all,
in my application i am using a combo boxa nd binding data to display member and value member.
i can fetch the selected value by using
Combo1.SelectedValue.ToString
but i can''t fetch the display value .
can any one help me out.
thanx in advance
推荐答案
您是否尝试过Combo1.SelectedText
?
将Combo1.SelectedValue.ToString
用作值
和Combo1.Text
表示选定的文本
UseCombo1.SelectedValue.ToString
for the value
andCombo1.Text
for the Selected Text
这篇关于在组合框中获取displaymember的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文