<DataGrid.Columns> <DataGridTextColumn Width="200" Header="colS" /> <DataGridTextColumn Width="200" Header="colA" /> <DataGridTextColumn Width="1" Header="colF" /> </DataGrid.Columns>
private void SongDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (SongDataGrid.SelectedIndex >= 0) { var i = SongDataGrid.SelectedIndex.ToString(); System.Data.DataRowView lbi = (System.Data.DataRowView)SongDataGrid.SelectedValue; var SongName = (lbi.Row[0].ToString()); var ArtistName = (lbi.Row[1].ToString()); var FileLocation = (lbi.Row[2].ToString()); myPlayList.Items.Add(new { colS = SongName, colA = ArtistName, colF = FileLocation });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)