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. Image for the cookie policy date

Mouse Hover in Grid Grouping Control

Hi,

How do i enable a cursor change while the mouse hovers in the cells of a particular row of grid grouping control. Tried using TableControlCellMouseHover of Grid Grouping control to no avail. The hand cursor is not appearing.

Private Sub ggc_TableControlCellMouseHover(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellMouseEventArgs) Handles ggc.TableControlCellMouseHover

If e.Inner.ColIndex = 1 Then
System.Windows.Forms.Cursor.Current = Cursors.Hand
Else
System.Windows.Forms.Cursor.Current = Cursors.Default
End If
End Sub



2 Replies

AD Administrator Syncfusion Team April 14, 2009 02:17 AM UTC

Private Sub GridGroupingControl1_TableControlCellCursor(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellCursorEventArgs) Handles GridGroupingControl1.TableControlCellCursor

If e.Inner.ColIndex = 1 And e.Inner.RowIndex > 2 Then
e.Inner.Cursor = Cursors.Hand
e.Inner.Cancel = True
End If
End Sub



LS Lingaraj S Syncfusion Team April 14, 2009 11:19 AM UTC

Hi Rentao,

Thank you for your interest in Syncfusion product.

The GridGroupingControl cursors are handled internally, so if you want to change the cursor in particular rows, Please try using TableControlCellCursor event in GridGroupingControl.

Please refer code in previous user update.

Let me know if it helps.

Regards,
Lingaraj S



Loader.
Live Chat Icon For mobile
Up arrow icon