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 07:55 PM UTC

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

Loader.
Up arrow icon