private void FillDatagridByTabPlaylist(int playlistID) { var results = DataGetSet.GetPlaylistEntries(playlistID); if (results != null) { DataGetSet.Datasource = DataGetSet.DataSourceEnum.Playlist; datagrid.ItemsSource = results; _dataLoaded = true; if (datagrid.Items.Count > 1) { datagrid.SelectedIndex = 1; } } }