Using Out-GridView, how do you control what the column names are? I would like something meaningful for the column names instead of “string” - is this possible?
[string] $colLabel = 'MyLabel'
[string] $a = 'a'
[string] $b = 'b'
$Selected = ($colLabel), ($a), ($b) | Out-GridView
Sure, use a temporary CSV file:
First it creates a temporary csv file, then imports and passes to grid view and then deletes it.