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.
Hi
Is there a way to pass x,y mouse co-ordinates in a SyncFusion grid and return the cell or RowIndex/ColIndex of the cell it's in.
I know that in the majority of cases the grid.CurrentCell works, but in some instances (like when columns are being multi selected) the last cell clicked isn't always the .CurrentCell.
Thanks
Martin
ADAdministrator Syncfusion Team August 13, 2003 12:24 PM UTC
Given a Point pt in grid coordinates, you can use PointToRowCol to get the row and col.
int rowIndex, colIndex;
this.gridDataBoundGrid1.PointToRowCol(pt, out rowIndex, out colIndex, -1);
'or in VB
Dim rowIndex, colIndex As Integer
Me.gridDataBoundGrid1.PointToRowCol(pt, rowIndex, colIndex, - 1)