数据绑定组合框刷新 [英] data bound combo box refreshing

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

问题描述

在特定表中添加数据后,如何刷新数据绑定组合框?我该如何做而不必再次关闭并打开项目

How do i refresh a data bound combo box after adding data in that particular table? How do i do it without having to close and open the project again

推荐答案

像winforms一样的声音-如果是这样,只需更新组合框的数据源即可.将新数据添加到旧数据中,或者重新获取数据,然后将此更新/新数据源定义到组合框中.

要刷新,您将需要一个触发器-刷新按钮或数据更新按钮或保存表单数据.
Sounds like winforms - if so, just update the datasource of the combobox. Either add the new data to old one or re-fetch the data and then define this updated/new datasource to your combobox.

For refresh, you would need a trigger - refresh button or data update button or save form data.


这篇关于数据绑定组合框刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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