datagridview.add_CellDoubleClick

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
aleXxX
Posts: 11
Last visit: Tue Mar 01, 2016 1:05 am

datagridview.add_CellDoubleClick

Post by aleXxX »

Hi,

I am trying to do something like this:
PowerShell Code
Double-click the code block to select all.
for($i=1;$i -le 3;$i++)
{
(Get-Variable -Name "datagridview$i").Value.add_CellDoubleClick($test1)
}
How can I get the value inside "()" to a dynamic variable instead of "$test1" ?

I want to be able to dynamically make CellDoubleClick events instead of static.

Thanks in advance!

/a

Locked