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 SpreadsheetPopupMenuShowing 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 SpreadsheetCustomCommandExecuted event to process an item click. The commandName event argument allows you to identify the clicked item.