Dmitry,
The context menu is easy, just create a menu and assign it to the
ContextMenu property of the DataGrid control. To select a complete row, you
can handle the click event of a grid and then use the Select method to
select a particular row. To get the row that was clicked, you can use the
HitTest method to find out where the row is that was clicked on.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Dmitry Karneyev" <ka******@msn.com> wrote in message
news:e0****************@TK2MSFTNGP11.phx.gbl...
Hi!
I'm using DataGrid in windows form.
I need to implement the following functionality:
- any mouse must select a row according where mouse has been clicked
- context menu must be also availiable by right mouse click
Have you got any ideas?
Thanks for any advice.