Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
How to enable default context menu on ultragrid in editable mode and app specific contextmenustrip on non editable mode
posted

Hi,
I have below requirement.
I want to display default context menu on the grid(cut/copy/paste etc..) when cell is in edit mode. But when cell is not in edit mode, I want

to display my own contextmenu strip.

I tried making contextmenustrip property null on Afterentereditmode event and then reassign my contextmenustrip on afterexiteditmode   event

but did not helo. It always shows the contextmenu strip which i assigned in afterexitmode event .

I tried in MouseUp event and handle the right click as well to do the same as above (check if cell is in edit mode or not and accordingly show the contextmenustrip)

but  when cell is in edit mode then mouseup event does not get fired.

Please help..

Thanks 

Parents Reply Children
No Data