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.
How can I prevent a right click from changing my grid''s current selection?
I took a look at SelectionChanging but it doesn''t seem to tell you if the MouseDown was a RMB or a LMB.
ADAdministrator Syncfusion Team April 21, 2004 03:15 PM UTC
Try setting
grid.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
Stefan
ADAdministrator Syncfusion Team May 4, 2004 04:53 PM UTC
What if you want the Left and right buttons to act the same.. (Like in windows explorer when you select a bunch of files you can use either the right or left button to do a drag of the selected items)
grid.Options.SelectCellsMouseButtonsMask = MouseButtons.Left & MouseButtons.Right; would be perfect, unfortunately this wont work..
Other ideas?
ADAdministrator Syncfusion Team May 4, 2004 05:12 PM UTC
grid.Options.SelectCellsMouseButtonsMask = MouseButtons.Left | MouseButtons.Right;
should work, not ''&''.
Stefan