Question


Fifth Third Bank
IN
Last activity: 14 Sep 2017 2:59 EDT
Interrogate the context menu items of DataGridView
Hi,
I'm trying to interrogate the Context menu item of a DataGridView on Windows Form.
But unfortunately it is not recognizing the context menu items.
I tried by "Add Context MenuItems" also, still it is not giving the context menu items which we require. The same way I tried for Text box and able to get the context menu items.
Any help will be appreciated.
Thanks,
Harish.
***Moderator Edit: Vidyaranjan | Updated SR details and tagged SR Created***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution


Amazon
US
Thanks for the response Harish, I solved my issue using sendKeys method as my application which I tried to automate did not support the use of "Add Menu Items" functionality.
Prasanna


Pegasystems Inc.
US
You may need to open an SR to get a support rep to examine the application. This may require custom development to capture content menu items for this particular application. One thing you can try is using SendKeys after calling ShowContext menu. You may be able to select the item with a keystroke. If you do open an SR, please include the number in this post for tracking purposes.


Fifth Third Bank
IN
I tried your solution and works for the selection of context menu item. but the problem is the context menu is always selecting the cell at the center of the datagridview.
I tried by select the cell by "SelectCell" method before showing the context menu, still the focus is changing to center cell of datagridview.
Thanks,
Harish.


Pegasystems Inc.
US
I believe you will need someone to take a look at this with you on your machine. From your description, this sounds like it might require a custom development effort to support. If you do open an SR, be sure to include the number here for tracking purposes.


Fifth Third Bank
IN


Amazon
US
Hi Harish,
Did you get response to fix this from SR.
Any help would be appreciated.
Thanks
Prasanna


Fifth Third Bank
IN
Hi Prasanna,
Still SR is in open Status.
Thanks


Pegasystems Inc.
US
Harish, I have recommended to the Support Engineer to have your team upgrade to the latest version on a test machine. The new UI Connector feature would possibly allow you to develop a solution for this control without waiting for development support. I hope your team can take advantage of this feature to use with this control.
Accepted Solution


Amazon
US
Thanks for the response Harish, I solved my issue using sendKeys method as my application which I tried to automate did not support the use of "Add Menu Items" functionality.
Prasanna