Hi,
I would like to know how to or any sample code to create a custom right click menu for the wingrid i.e. when the user select a row on the grid then right click it will popup a context menu like View, Goto..
Thanks
Thank You it is working
I have another question since I have a custom context menu How do i disable the "built in" (Edit, Copy, Paste...) context menu from the grid?
qho said: Thank You it is working I have another question since I have a custom context menu How do i disable the "built in" (Edit, Copy, Paste...) context menu from the grid?
Ok... the opposite question... I can't get the built in menu to pop, how do I get that to happen? I do not have a Context Menu, so I can't see what would be blocking it.
Oh, I am using v. 7.1.20071.40
Thanks!
The default popup menu is built-in to the Microsoft TextBox control. So if you are not getting one to appear, my guess is that your grid cell is not entering edit mode. Perhaps you set CellClickAction or Activation or CellActivation to not allow editing?
hi,
I want the whole row to be selected when i do a right click to display the context menu.My row is getting selected but the problem is that when i do a right click the initial selection should go,which is not happening.The left click row as well as the right clicked row,both are getting selected.I want the right click to behave in the same manner as the Left click.Please help.
M.
Right-clicking does not select a row, so you would have to handle this in code. You could use the MouseDown event of the grid and determine the row that was clicked using UIElements. Here's a KB article that explains how:
HOWTO:UltraWinGrid Mouse Position and Row Identification