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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl - Disable sorting on right-click

Thread ID:

Created:

Updated:

Platform:

Replies:

22542 Dec 15,2004 08:48 AM UTC Dec 15,2004 10:32 AM UTC WinForms 2
loading
Tags: GridControl
Sameer Patil
Asked On December 15, 2004 08:48 AM UTC

Hi How can I set a GridGoupingControl to sort only on left-click and not on right-click? Thanks, Sameer

Administrator [Syncfusion]
Replied On December 15, 2004 09:13 AM UTC

You can handle the TableControlCellClick event and cancel it if it is the right button.
private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
{
	if(e.Inner.MouseEventArgs.Button == MouseButtons.Right)
		e.Inner.Cancel = true;
}

Sameer Patil
Replied On December 15, 2004 10:32 AM UTC

Works fine. Thanks! Sameer >You can handle the TableControlCellClick event and cancel it if it is the right button. >
>private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
>{
>	if(e.Inner.MouseEventArgs.Button == MouseButtons.Right)
>		e.Inner.Cancel = true;
>}
>

CONFIRMATION

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.

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

;