SfDataGrid mouse events firing order

I have searched the documentation and forums and cannot find where the order in which the mouse click events are fired for the SfDataGrid Winforms control.
I need to do some context menu manipulation prior to displaying it.

The events that I can see that might best be used for this are:
Click
MouseClick
CellClick
MouseDown

In testing, it would appear that MouseClick, MouseDown and Click do not even fire! So am I limited to CellClick only?

Assistance welcome on this.
Thanks.

3 Replies

SS Susmitha Sundar Syncfusion Team May 18, 2020 04:06 PM UTC

Hi Stoked, 
 
Thank you for using Syncfusion controls. 
 
You can use your mentioned events from SfDataGrid.TableControl instead of SfDataGrid 
 Events. Please refer the below events, 
 
this.sfDataGrid1.TableControl.Click += TableControl_Click; 
this.sfDataGrid1.TableControl.MouseClick += TableControl_MouseClick; 
this.sfDataGrid1.TableControl.MouseDown += TableControl_MouseDown; 
 
  private void TableControl_MouseDown(object sender, MouseEventArgs e) 
  { 
      
  } 
 
  private void TableControl_MouseClick(object sender, MouseEventArgs e) 
  { 
       
  } 
 
  private void TableControl_Click(object sender, EventArgs e) 
  { 
       
  } 
 
We request to use the below events to achieve your requirements. Please let us know if you need further assistance on this. 
 
Regards, 
Susmitha S 



ST Stoked May 18, 2020 08:38 PM UTC

Thanks.

Can you please indicate the firing order of the listed 4 events?

Click
MouseClick
CellClick
MouseDown


SS Susmitha Sundar Syncfusion Team May 19, 2020 10:47 AM UTC

Hi Stoked, 
 
Thank you for the update. 
 
Please find the order of the events. 
 
1.       SfDataGrid.CellClick 
2.       SfDataGrid.TableControl.MouseDown 
3.       SfDataGrid.TableControl.Click 
4.       SfDataGrid.TableControl.MouseClick 
 
Please let us know if you need further assistance on this. 
 
Regards, 
Susmitha S 


Loader.
Up arrow icon