Click or drag to resize

JamBaseShellListViewSetColumnVisibility(SHCOLUMNID, Boolean) Method

Sets the visibility of a column.

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

Parameters

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

Return Value

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