Using
Code: Select all
$myObj = "" | Select-Object Col1 # create custom object
$myObj.Col1 = 'this is a test'
Load-DataGridView $datagridview1 $myObj
Ben
Code: Select all
$myObj = "" | Select-Object Col1 # create custom object
$myObj.Col1 = 'this is a test'
Load-DataGridView $datagridview1 $myObj