Hi.
I would like to populate DataGrid with XML data stored in variable.
Below I have working example of populating DataGrid.
$grid = New-Object System.Windows.Forms.DataGrid
$array = New-Object System.Collections.ArrayList
foreach ($e in $(Get-Process | Select Name,Company)) { $array.Add($e) }
$grid.DataSource = $array
How can I do it easily to load XML data into ArrayList?
I tried ReadXml but it displays only one expandable node in Grid.
I need to display data the same as Get-Process gives me.
Maybe there is some other solution?
Regards.