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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

why isn't the right click event caught?

Thread ID:





6203 Aug 4,2003 07:46 PM UTC Aug 4,2003 07:55 PM UTC WinForms 1
Tags: GridControl
jacky chen
Asked On August 4, 2003 07:46 PM UTC

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!

jacky chen
Replied On August 4, 2003 07:55 PM UTC

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon