如果我在数据库中添加任何值,我想更新vb.net中的组合框 [英] i want to update the combobox in vb.net if i add any value in the database

查看:76
本文介绍了如果我在数据库中添加任何值,我想更新vb.net中的组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在vb.net中的一个项目中工作,我无法更新组合框
,comobobx应该在运行时更新

i m working for a project in vb.net and i am not able to update the combobox
,the comobobx should update at the runtime

推荐答案

您应该使此Combobox数据绑定.将其绑定到您要从中记录的表的列.这样,如果数据库获得更多值,它将显示更新后的值.

这是一篇可能有帮助的文章

数据绑定组合框 [
You should make this Combobox databound. Bind it to the column of the table you want the records from. That way if the database gets more values it will show the updated values.

Here is an article that might help

A Data Bound Combo Box[^]


这篇关于如果我在数据库中添加任何值,我想更新vb.net中的组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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