我如何在Vb.Net中的Sql表中插入Combbox值Meamber值 [英] How I Insert Combbox Value Meamber Value In Sql Table In Vb.Net

查看:104
本文介绍了我如何在Vb.Net中的Sql表中插入Combbox值Meamber值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i有一个组合框

其价值成员是product_id

其显示成员是product_name

i想要将其值成员插入到sql表数字列中

示例

comb0box显示成员是Milk包1 Ltr Pack

和值成员是30

i想在sql表中插入30(Value member)而不是它的显示成员

怎么样它可能会帮助我

Thanx in Advance


i have a combo box
its value member is "product_id"
its display member is "product_name"
i want to insert its value member in to sql table numeric column
example
comb0box display member is Milk Pack 1 Ltr Pack
and value member is 30
i want to insert 30(Value member)in sql table not its display member
how is it possible kindly help me
Thanx in Advance

推荐答案

网络中的示例 [ ^ ],例如:如何使用组合框将数据插入数据库 [ ^ ]
Tons of examples in net[^], for example: how to insert data into database using combo box[^]


说实话,你的问题不是很清楚。这取决于您想要触发此事件以保存在数据库中的事件。



在所选事件的comb0box上可以返回这样的文字



Dim str = comb0box.ValueMember。
To be honest your question is not very clear. It depends on what event you would want to trigger this to save in the database.

On the selected event of comb0box can return the literal like this

Dim str = comb0box.ValueMember.


这篇关于我如何在Vb.Net中的Sql表中插入Combbox值Meamber值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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