winform里listbox数据绑定,listbox取值问题
listbox数据绑定
说明:1、SqlHelper为数据库操作帮助类,通过它执行存储过程,获取dataset
2、DisplayMember为listbox显示的数据
3、ValueMember为listbox隐藏的数据
listbox取值
绑定datasource后,是不能用listbox1.selecteditem这方法取值的,必须使用转换或使用listbox1.selectedvalue取值
或