PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
DataGrid and ContextMenu (CF 2)
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
DataGrid and ContextMenu (CF 2)
![]() |
DataGrid and ContextMenu (CF 2) |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hello,
I have a DataGrid with a BindingSource and a ContextMenu. I would like to change the Current property of the BindingSource before the ContextMenu appears so that it matches the clicked row. Is there a way to do this ? Thanks for your help. -- Fred http://www.cerber mail.com/?3kA6ftaCvT (enlever l'espace) |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Dans : news:ubK72q2IIHA.5328@TK2MSFTNGP05.phx.gbl,
Fred disait : > Hello, > > I have a DataGrid with a BindingSource and a ContextMenu. > I would like to change the Current property of the BindingSource > before the ContextMenu appears so that it matches the clicked row. > Is there a way to do this ? No idea ? Or perhaps my question is not so clear ? I explain another way to do, perhaps there is an easier solution to succeed with this other method. I tried to create the context menu in the MouseDown event (In this case, I can change the selected row of my DataGrid using HitTestInfo. In the MenuClick event I launch an action that hides the current Form and open another one. Unfortunatly, when the sub attached to the MenuClick event finishes, the caption bar and the mainMenu of the hidden window appears again. I mean that I have the expected form displayed but with the wrong caption bar and menu. A simple click on the form client area is enough to restore the right bar and menu. -- Fred http://www.cerber mail.com/?3kA6ftaCvT (enlever l'espace) |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

