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

ContextMenu

Thread ID:

Created:

Updated:

Platform:

Replies:

37546 Nov 24,2005 11:37 AM UTC Nov 25,2005 06:44 AM UTC WinForms 2
loading
Tags: GridControl
vihar
Asked On November 24, 2005 11:37 AM UTC

How to add ContextMenu only in the child grid for GGC. Thanks .

Administrator [Syncfusion]
Replied On November 24, 2005 03:02 PM UTC

Try handling the TableControlCellClick event and conditionally showing your contextmenu there.
private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
{
	if(e.Inner.MouseEventArgs.Button == MouseButtons.Right
		&& e.TableControl.TableDescriptor.Name == "ChildTable")
	{
		this.contextMenu1.Show(this.gridGroupingControl1, this.gridGroupingControl1.PointToClient(Control.MousePosition));
	}
}

vihar
Replied On November 25, 2005 06:44 AM UTC

Thanks Clay Burch Its Working Fine .... >Try handling the TableControlCellClick event and conditionally showing your contextmenu there. >
>private void gridGroupingControl1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
>{
>	if(e.Inner.MouseEventArgs.Button == MouseButtons.Right
>		&& e.TableControl.TableDescriptor.Name == "ChildTable")
>	{
>		this.contextMenu1.Show(this.gridGroupingControl1, this.gridGroupingControl1.PointToClient(Control.MousePosition));
>	}
>}
>

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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;