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.
Hello,
i want to change the mouse cursor (default to hand) when i am on the first column (only the first) of my datagrid.
i try this code and it don't work :
Private Sub DataGrid1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseMove
Dim hti As system.Windows.Forms.DataGrid.HitTestInfo
hti = DataGrid1.HitTest(e.X, e.Y)
If hti.Type = System.Windows.Forms.DataGrid.HitTestType.Cell Then
If hti.Column = 1 Then
DataGrid1.Cursor = System.Windows.Forms.Cursors.Hand
Cursor.Current = System.Windows.Forms.Cursors.Hand
End If
End If
End Sub
ADAdministrator Syncfusion Team August 13, 2003 09:40 PM UTC
> Hello,
>
> i want to change the mouse cursor (default to hand) when i am on the first column (only the first) of my datagrid.
>
> i try this code and it don't work :
>
> Private Sub DataGrid1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGrid1.MouseMove
> Dim hti As system.Windows.Forms.DataGrid.HitTestInfo
> hti = DataGrid1.HitTest(e.X, e.Y)
> If hti.Type = System.Windows.Forms.DataGrid.HitTestType.Cell Then
> If hti.Column = 1 Then
> DataGrid1.Cursor = System.Windows.Forms.Cursors.Hand
> Cursor.Current = System.Windows.Forms.Cursors.Hand
> End If
> End If
> End Sub
>