How to Set The Cursor to GridGroupingControl instead of the Default One

3 Jan 2020 / 1 minute to read

You need to handle TableControlCellCursor event of GridGroupingControl and set the required cursor to the e.Inner.Cursor property.

//Event invoker.
this.gridGroupingControl1.TableControlCellCursor +=new Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellCursorEventHandler(gridGroupingControl1_TableControlCellCursor);

//Event handler. 
void gridGroupingControl1_TableControlCellCursor(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellCursorEventArgs e)
{
    e.Inner.Cancel = true;           
    e.Inner.Cursor = Cursors.Hand;
}
'Event invoker.
AddHandler gridGroupingControl1.TableControlCellCursor, AddressOf gridGroupingControl1_TableControlCellCursor

'Event handler.
Private Sub gridGroupingControl1_TableControlCellCursor(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlCellCursorEventArgs)
e.Inner.Cancel = True
e.Inner.Cursor = Cursors.Hand
End Sub