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


Thread ID:





22875 Dec 28,2004 06:57 AM UTC Dec 29,2004 09:44 AM UTC WinForms 3
Tags: Grouping
Jason Southgate
Asked On December 28, 2004 06:57 AM UTC

Hi, Is there an equivalent to the SelectCellsMouseButtonsMask property like in the regular grid control for the GridGroupingControl or should I handle the mouse events specifically?? Jason Southgate.

Jason Southgate
Replied On December 28, 2004 07:05 AM UTC

Basically I am already using linkMonitorGrid.TableControl.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left; to stop the row being unselected when the context menu pops up, but I would like to allow the TableControlCellClick event to still fire when right-clicking the GroupingGridControl. Many thanks.

Administrator [Syncfusion]
Replied On December 29, 2004 08:52 AM UTC

TableCellClick will not be raised on the right-click if you set the SelectCellsMouseButtonsMask to ignore it. You can try to catch the TableControlMouseDown which will be raised for the right click even if you set the selections to ignore the right-click. If you are using the new row selection support in 3.0, another option might be to not set the SelectCellsMouseButtonsMask, but instead handle the SelectedRecordsChanging event and cancel it if the selections are changing as a result of a right-click. private void grd_SelectedRecordsChanging(object sender, SelectedRecordsChangedEventArgs e) { if(Control.MouseButtons == MouseButtons.Right) e.Cancel = true; }

Jason Southgate
Replied On December 29, 2004 09:44 AM UTC

Hi Clay, Well we are not using 3.0 yet, so I''ll take the first approach! I can see the later method is conceptually clearer however. Thanks again. Jason.


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