Code: Select all
$MyDataTable = New-Object System.Data.DataTable
$MyDataTable.Columns.Add('ArtistName',[string])
$MyDataTable.Columns.Add('ArtistID',[string])
Code: Select all
$NR = $MyDataTable.NewRow()
$NR['ArtistName'] = $R.Name
$NR['ArtistID'] = $R.id
$MyDataTable.Rows.Add($NR)
Code: Select all
$SearchandDiscovery_Load={
UpdateNavButtons
$MyBindingSource.DataSource = $MyDataTable
}
Code: Select all
$buttonLookup_Click={
Request-ArtistInfo -Artist $ListOfArtists.SelectedItem.ToString()
$MyBindingSource.DataSource = $MyDataTable
}
It's there but its not... If I try to look at the items Collection, I get this error, but as fare as I know, I have done this.. but maybe not in the right spot? Any help would be guidance would be greatly appreciated
Wøødy