The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have to implement a context menu over a range of selected cells. In demos I've found to display a context menu, it's always invoked on the mouse up event.
contextMenu = new ContextMenuStrip(); contextMenu.contextMenu.Opening += new System.ComponentModel.CancelEventHandler(cms_Opening); contextMenu.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(cms_ItemClicked); this.ContextMenuStrip = contextMenu;
But this destroys the multiple selected cells.
How can I invoke the context menu with the mouse down event (like Excel does) whithout changing the grids selection range?
Or - if this is possible - how can I achieve that a right click does not alter the selected cells, when the context menu is invoked on the mouse up event?