Description
Consider:
$L = Get-TineWMSLocation -StagingLive
$P = Get-TineWMSLocation -StagingPilot
$T = Get-TineWMSLocation -StagingTrunk
$List = @($L, $P, $T)
$sel = $List | Select-Object BuildName, GlobalLocationId, LocationName | Out-ConsoleGridView -OutputMode Single -Title "Select Build for synchronisation"
Coming to this code, I have a target which has buildname 'Pilot', i.e. the second of the options.
I would like to have that option preselected so that all the user has to do, is to press enter.
Suggestion - add an option to focus a row.
F.x. Out-ConsoleGridView -OutputMode Single -Focus 'Live'
-Focus could use the first column as "key"
This could also work for -OutputMode Multiple where it would focus the first list row where the first column matches the focus string.