如何选择LB项目 [英] How to select LB items

查看:241
本文介绍了如何选择LB项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一个填充的ListBox 与所有的课程,所以条目是:

I populated a ListBox with all the courses, so the entries are:

Course #1
Course #2
Course #3
Course #4

我一个填充的DropDownList 所有的列名,因此,条目是:

I populated a DropDownList with all the column name, so the entries are:

Role#1
Role#2
Role#3

我如何选择多个项目。

How can I multi-select items.

推荐答案

好像这是你想要什么:

@"SELECT [Course] 
FROM [Table1] 
WHERE [" + dropdownlistID.SelectedItem.Value + "] IS NOT NULL"

这篇关于如何选择LB项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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