在组合框中获取displaymember的数据 [英] getting data of displaymember in a combo box

查看:70
本文介绍了在组合框中获取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表示选定的文本
Use Combo1.SelectedValue.ToString for the value
and Combo1.Text for the Selected Text


这篇关于在组合框中获取displaymember的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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