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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Change the mouse pointer on a datagrid column

Thread ID:

Created:

Updated:

Platform:

Replies:

3122 Mar 4,2003 07:44 AM UTC Oct 24,2003 08:27 PM UTC WinForms 2
loading
Tags: FAQ
Gregory
Asked On March 4, 2003 07:44 AM 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

Administrator [Syncfusion]
Replied On 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 >

Ankur Kalsi
Replied On October 24, 2003 08:27 PM UTC

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.

Warning Icon 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.Close Icon

;