We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Change the mouse pointer on a datagrid column

Thread ID:

Created:

Updated:

Platform:

Replies:

3122 Mar 4,2003 02:44 AM Oct 24,2003 04:27 PM Windows Forms 2
loading
Tags: FAQ
Gregory
Asked On March 4, 2003 02:44 AM

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

Administrator [Syncfusion]
Replied On August 13, 2003 05:40 PM

> 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 >

Ankur Kalsi
Replied On October 24, 2003 04:27 PM

Can you please send me a sample code to do this?

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;