IJamShellColumnCollectionShow Method |
Namespace: Jam.Shell
private void ShellListView1_CreatedColumns(object sender, EventArgs e) { if (shellListView1.SpecialFolder == ShellFolder.MyMusic) { shellListView1.BeginUpdate(); shellListView1.Columns.Clear(); //name column it will be reinserted again automatically. shellListView1.Columns.Show(SHCOLUMNID.ShellColumnSummaryTitle); //displays the column at the default position. shellListView1.Columns.Show(SHCOLUMNID.ShellColumnMusicAlbum); shellListView1.Columns.Show(SHCOLUMNID.ShellColumnMusicArtist); shellListView1.Columns.Add(SHCOLUMNID.ShellColumnMusicGenre); //adds the column at the end. shellListView1.EndUpdate(); } }