Easiest way to do it, is to add the context menu to the bound field as
shown below
public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added
Variable Initialization' lines **
// Begin Wizard Added Variable Initialization
// End Wizard Added Variable Initialization
// Begin Wizard Added Custom Method Calls
// End Wizard Added Custom Method Calls
oTrans.RegisterContextHandler("OrderHed.PONum", "Click this",
handleContextClick);
}
object handleContextClick(object sender, object currentValue)
{
MessageBox.Show("Current value is: " + currentValue.ToString() + " --
setting to foobarbuzz");
return "foobarbuzz";
}
*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>
*Quis custodiet ipsos custodes?*
shown below
public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added
Variable Initialization' lines **
// Begin Wizard Added Variable Initialization
// End Wizard Added Variable Initialization
// Begin Wizard Added Custom Method Calls
// End Wizard Added Custom Method Calls
oTrans.RegisterContextHandler("OrderHed.PONum", "Click this",
handleContextClick);
}
object handleContextClick(object sender, object currentValue)
{
MessageBox.Show("Current value is: " + currentValue.ToString() + " --
setting to foobarbuzz");
return "foobarbuzz";
}
*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>
*Quis custodiet ipsos custodes?*
On Thu, May 31, 2012 at 2:05 PM, tkoch77 <tkoch77@...> wrote:
> **
>
>
> Has anyone had success with adding another option to a user added
> UltraGrid context menu? I see you can access the ContextMenuStrip for the
> grid, but not sure how to (if possible) to add another selection option.
>
> Thanks,
>
> Ted
>
>
>
[Non-text portions of this message have been removed]