Search found 1 match

by smith523
Fri Sep 11, 2020 7:01 am
Forum: PowerShell
Topic: How to foreach from datagridview
Replies: 0
Views: 1690

How to foreach from datagridview

I try to create a loop Like Excel $csv = Import-Excel “C:\Script\tes.xlsx” $Count=0 foreach ($item in $csv){ ” $($item.example) $($item.example) “ $datagridview1.Rows | Select-Object -ExpandProperty DataBoundItem | Export-Csv $home\AppData\Local\Temp\test.csv -NoTypeInformation -Encoding UTF8 -Forc...