datagridview help

G

Guest

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
 
A

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top