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.
HAhaneefm Syncfusion Team April 18, 2007 07:09 PM UTC
Hi Tom,
One way you can do this by handling the MouseMove event of the grid and call CurrentCell.MoveTo method to move the current cell required position. Here is a code.
private void gridControl1_MouseMove(object sender, MouseEventArgs e) { GridControl grid = sender as GridControl; int row,col; grid.PointToRowCol(new Point(e.X,e.Y),out row, out col); grid.CurrentCell.MoveTo(row,col,GridSetCurrentCellOptions.SetFocus); }
Best regards, Haneef
TZTom ZehrbachApril 19, 2007 02:10 PM UTC
That works great, Haneef, thanks.
>Hi Tom,
One way you can do this by handling the MouseMove event of the grid and call CurrentCell.MoveTo method to move the current cell required position. Here is a code.
private void gridControl1_MouseMove(object sender, MouseEventArgs e) { GridControl grid = sender as GridControl; int row,col; grid.PointToRowCol(new Point(e.X,e.Y),out row, out col); grid.CurrentCell.MoveTo(row,col,GridSetCurrentCellOptions.SetFocus); }