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

why isn't the right click event caught?

my code catches the cell_clicked event and displays context menu to the user private void grdViewData_CellClick(object sender, Syncfusion.Windows.Forms.Grid.GridCellClickEventArgs e) { //right click, display context menu if(e.MouseEventArgs.Button.Equals(MouseButtons.Right) && this.grdViewData.CurrentCell.RowIndex>0) { } } it goes fine when the cell is not activated and the first click on a cell is a right click but if the user first gives a left click, gets the cell activated then gives a right click, this event is not raised, which means the context menu is nopt displayed, why is that and how do i fix it? thanks in advance!

1 Reply

JC jacky chen August 4, 2003 03:55 PM

sorry, never mind, just went thru some previous posts and got the right example for it.

Loader.
Live Chat Icon For mobile
Up arrow icon