2
考慮下面的代碼:出的GridView中移除了下劃線
$a = @()
$b = "" |select ho_ho,ha_ha
$b.ho_ho = "1"
$b.ha_ha = "2"
$a+=$b
$b = "" |select ho_ho,ha_ha
$b.ho_ho = "3"
$b.ha_ha = "4"
$a+=$b
$a | Format-Table -AutoSize
$a | Out-GridView
使用Format-表,在列標題中的下劃線被保留。
ho_ho ha_ha
----- -----
1 2
3 4
然而,使用外的GridView時,下劃線被自動刪除?
有誰知道如何避免這種情況?