This demo shows how to implement a custom context menu and display it for specified sheet cells only.
To populate the context menu with custom items, write the OnPopupMenuShowing event handler. You can add different items to the menu based on the cell data type (such as weight, currency, or discount values). Use the OnCustomCommandExecuted event to process an item click. The commandName event argument property allows you to identify the clicked item.