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.

ContextMenu

Thread ID:

Created:

Updated:

Platform:

Replies:

37546 Nov 24,2005 06:37 AM Nov 25,2005 01:44 AM Windows Forms 2
loading
Tags: GridControl
vihar
Asked On November 24, 2005 06:37 AM

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

Administrator [Syncfusion]
Replied On November 24, 2005 10:02 AM

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 01:44 AM

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.

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.

;