I am trying to write the contents of a text file to a datagridview. If I iterate through the array lines, I see the strings. When I add the array to a datagridview, I see properties of the file, line numbers, and string lengths -- but not the strings, which is all I want.
$LogFileRaw = Get-Content($selected)
If I use .Net, I just see the string lengths
$LogFileRaw = [System.IO.File]::ReadAllLines($selected)
I think that I haven't correctly bound the string array to a DataGridView control. I've found examples of doing this in other languages, but not in Powershell. Can someone can point me to a Powershell example or explain what I'm doing wrong? Thank you for your patience.