Visual Basic .NET » Internet / Hardware Communication
Context menu issue on datagrid -- joolsh --


Hi Can anyone help.

I have an application that contains a datagrid control (vb.net 2003,
.net framework 1.1). I have created a context menu which contains multiple menu item options. This is then attached to the datagrid. I can select a row and then right click to display the menu which appears over the datagrid. When I click on a menu option, the row behind the clicked menu option is selected (which very often is not the same row as the required row). Can anyone tell me how to stop this from happening. I have tried disabling the datagrid on the context menu's popup event and then re-enabling it when the option from the menu has been clicked. This does not stop the selection happening through the context menu. Also, when I do not click the menu option, the datagrid remains disabled.

Any ideas would be greatly appreciated.

I have only been developing vb.net for about 6 months so am still a relative newbie.

regards

Jools

-- joolsh --


I managed to resolve the problem thanks

[Submit Comment]Home