ShellSystemListColumns Property |
Namespace: Jam.Shell
explorerBrowser1.Columns.Clear(); explorerBrowser1.Columns.Add(SHCOLUMNID.ShellColumnName); explorerBrowser1.Columns.Add(SHCOLUMNID.ShellColumnSize); explorerBrowser1.Columns.Add(SHCOLUMNID.ShellColumnParentFolder);
//if you want to define the total set of columns at once, this version is much more performant than adding each column seperately. explorerBrowser1.Columns.SetColumns(new List<SHCOLUMNID>() { SHCOLUMNID.ShellColumnName, SHCOLUMNID.ShellColumnSize, SHCOLUMNID.ShellColumnElementType });
if (IsMyMusic()) { //"Show" shows the column at its default position, but you can determine the position by using "Insert" or "Add" explorerBrowser1.Columns.Show(SHCOLUMNID.ShellColumnMusicTitlenumber); explorerBrowser1.Columns.Show(SHCOLUMNID.ShellColumnSummaryTitle); explorerBrowser1.Columns.Show(SHCOLUMNID.ShellColumnMusicArtist); explorerBrowser1.Columns.Show(SHCOLUMNID.ShellColumnMusicAlbum); explorerBrowser1.Columns.Show(SHCOLUMNID.ShellColumnMusicYear); explorerBrowser1.Columns[explorerBrowser1.Columns.Count - 1].Caption = "Custom title"; }
explorerBrowser1.Columns.Remove(SHCOLUMNID.ShellColumnSize); //Removes the Size column. If it doesn't exist it is skipped.