3个文本框和1个组合框 [英] 3 textbox and 1 combobox

查看:121
本文介绍了3个文本框和1个组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何连接3个文本框的3个文本,并使用数据库将它们作为组合框中的一个项目...

how to concatenate the 3 text of 3 textbox and make them as a one item in a combobox using a database...

推荐答案

使用

combobox.Items.Add(字符串1 +字符串2 +字符串3)

怎么了?
Use

combobox.Items.Add(string1 + string2 + string3)

What is the problem with it?


不知道出了什么问题!
正如您通过数据库询问的那样:
您可以通过SQL查询来实现.将查询中的三个文本框值(列)连接为组合框的行输出.

Dont know whats the issue!
As you asked via database:
You can achieve this by SQL queries. Concatenate the three textbox values(columns) in queries as a row output for the combobox.

SELECT Col1+' '+Col2+' '+Col3 AS ComboBoXItems FROM Table1 


这篇关于3个文本框和1个组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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