Hi
I am using UltraWin grid in my VB.NET windows application. I want to dynamically change the context menu Itembased of the Cell which has been selected.
I have a default menu which should be displayed when the user right-clicks the grid. I have another menu whose menu items change dynamically based on the clicked cell.
I am merging these two menus and setting it as the context menu of the Grid but i am not able to set the order of the menu items and add sub menu items dynamically.
How to change the order of the menu items in a Context menu dynamically and handle their click events?
Ashok
Are you using the inbox ContextMenu? Or the UltraToolbarsManager? You can change the order of items in the UltraToolbarsManager context menus.
You cannot change the order of menu items at run time. The only way to do this is by removing each menu item, then adding them back in the order you require or inserting them back at a specified index. The original Click event handler will be maintained.