Posted 27 November 2017, 7:40 am EST
I have created a context menu for my grid.
How do I stop it from appearing on specific rows?
Thank you
Stephen
Forums Home / ComponentOne / WinForms Edition
Posted by: sg on 27 November 2017, 7:40 am EST
Posted 27 November 2017, 7:40 am EST
I have created a context menu for my grid.
How do I stop it from appearing on specific rows?
Thank you
Stephen
Posted 28 November 2017, 1:37 am EST
Hi Stephen,
In FlexGrid_MouseDown event find the row of specific type using HitTestInfo class and then, assign null to FlexGrid.ContextMenu.
Please see the attached sample of above implementation.
Thanks
+Manindraprj_RestrictContextMenu.zip