Click or drag to resize

JamBaseShellListViewSetColumnVisibility Method (SHCOLUMNID, Boolean)

Sets the visibility of a column.

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Winforms (in ShellBrowser.Winforms.dll) Version: 6.3.1
Syntax
public virtual int SetColumnVisibility(
	SHCOLUMNID p_ColID,
	bool visible
)

Parameters

p_ColID
Type: Jam.ShellSHCOLUMNID
The SHCOLUMNID. Note: Deleting the name column is not allowed.
visible
Type: SystemBoolean
True to show the column, false to hide.

Return Value

Type: Int32
0 or more: the index of the added column. -1: the column was successfully removed. -2: the 'name' column should be removed but thats not allowed.
Remarks
If you don't know the SHCOLUMNID, you may find it using the function GetColumnText(Int32, Boolean) and GetShColumnIdFromColumnNumber(Int32). Just loop over the possible 255 columns and compare the returned column title with your wanted column title. As soon as you found the correct shell column number, use the GetShColumnIdFromColumnNumber(Int32) to convert it into a SHCOLUMNID. Note that the column title depends on your system language.
See Also