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
The typical pattern would be:
or
Here's 1 example of a calculated property: