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 a requirement in Grid Control to select multiple cells by either holding Ctrl button and Clicking on Cells Or Click a Cell and drag to select multiple cells and then right Click on these selected cells and update some status.
Please let me know how to achieve this in Grid Control.
Thanks for your code. Using this, I can able to Select multiple cells which is fine. Now, the issue is after selecting the cells, on my right click on the selected cells, I require the selected cells info like rownum and ColNum of selected cells.
Pls let me know the event which I can use to achieve this. I want this event to fire when I right Click on any of selected cells and how to fetch selected cells info
Pls help me with this..
Thanks..
>Hi Ankit,
Please try the following codes and let me know if this helps.
JJJisha Joy Syncfusion Team December 23, 2008 05:27 AM UTC
Hi Ankit,
This can be achieved by handling the MouseDown event and can check for MouseButtons. You can get the selected ranges from the method GetSelectedRanges. You can use GetCellsInfo method to get the style information from ranges. Please check out the code:
this.gridControl1.MouseDown += new MouseEventHandler(gridControl1_MouseDown); this.gridControl1.AllowSelection = Syncfusion.Windows.Forms.Grid.GridSelectionFlags.Any; this.gridControl1.SelectCellsMouseButtonsMask = MouseButtons.Left;