Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1284
Dynamic Context menu Items
posted

Hi

I am using UltraWin grid in my VB.NET windows application. I want to dynamically change the context menu Item
based 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


Parents
  • 180
    posted

    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.

Reply Children
No Data