如何刷新动态绑定的菜单 [英] How to refresh dynamically binded menu

查看:73
本文介绍了如何刷新动态绑定的菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

IAM使用MainMenu first_menu = new MainMenu();在基于.net Windows的应用程序中创建新的菜单项.菜单中的所有项目都通过使用某些查询来自数据库.但是当我添加新菜单项时,更改未反映在menuitem中.在将menuitems添加到表中后,我调用了将菜单项绑定到该程序的过程.处置该表单并再次调用该表单,它可以工作.但是每次添加后都无法处置并再次调用它.如果这样做,则菜单窗口位于已采用窗口的前面.如何解决

提前致谢


Amrutha

Hi all

Iam using MainMenu first_menu = new MainMenu(); to create new menu item in .net windows based application. all items in the menu comes from database by using certain queries.but when i added new menu item changes not reflecting in the menuitem.I invoke the procedure to bind menuitems after addition of menuitems to the table.but its not works.but when i dispose the form and call the form again it works.but its not possible to dispose and call it again after each addition.if do so the menu window come in front of already taken window. how to solve it

THANKS IN ADVANCE


Amrutha

推荐答案

从数据库添加新项目时,将出现诸如Acceptchanges()之类的内容,其中将考虑进行新的更改.检查一下.如果问题仍然存在,请放上源代码
When you add new items from database there will be something like Acceptchanges()where new changes made will be considered. Check for that. If still problem persist then put the source code


这篇关于如何刷新动态绑定的菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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