Home All Groups Group Topic Archive Search About
Author
5 May 2007 1:06 PM
AVL
i've used .net 2.0 datagrid view control/..

i want to show a dropdowm menu whenever i doubleclick a row on my grid..
how do I achieve it...any good samples

Author
6 May 2007 3:14 PM
Alvin Bruney [MVP]
You should post this in the datagrid newsgroup. Anyway, essentially you will
need to handle the click event and first create a drop down control.
Populate the controls collection of the e argument from the event handler
with the new drop down control. Rough code?

if(e.items.cells.count > 0)
e.items.cells[0].controls.add(new dropdownlist("hello","world");

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley


Show quoteHide quote
"AVL" <A**@discussions.microsoft.com> wrote in message
news:902F0CC1-829D-4494-9D6F-DE813BC8B8C4@microsoft.com...
> i've used .net 2.0 datagrid view control/..
>
> i want to show a dropdowm menu whenever i doubleclick a row on my grid..
> how do I achieve it...any good samples

Bookmark and Share