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

GridGroupingControl - Disable sorting on right-click

Thread ID:

Created:

Updated:

Platform:

Replies:

22542 Dec 15,2004 03:48 AM Dec 15,2004 05:32 AM Windows Forms 2
loading
Tags: GridControl
Sameer Patil
Asked On December 15, 2004 03:48 AM

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 04:13 AM

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 05:32 AM

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.

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.

;