if (grid != null && e.Button == System.Windows.Forms.MouseButtons.Right)
{
grid.ContextMenu = contextMenu;
grid.ContextMenu.Show(grid, e.Location);
}
}
I hope this information helps. Should you have further questions, I would be glad to help.
Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>
0
Stefan
Telerik team
answered on 21 Oct 2013, 10:58 AM
Hello Kim,
Thank you for contacting Telerik Support.
In order to achieve your goal, please have a look at the following code snippet:
if (grid != null && e.Button == System.Windows.Forms.MouseButtons.Right)
{
grid.ContextMenu = contextMenu;
grid.ContextMenu.Show(grid, e.Location);
}
}
I hope this information helps. Should you have further questions, I would be glad to help.
Regards,
Stefan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>