This documentation is archived and is not being maintained.

ListView.Scrollable Property

Gets or sets a value indicating whether a scroll bar is added to the control when there is not enough room to display all items.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public bool Scrollable { get; set; }
/** @property */
public boolean get_Scrollable ()

/** @property */
public void set_Scrollable (boolean value)

public function get Scrollable () : boolean

public function set Scrollable (value : boolean)

Not applicable.

Property Value

true if scroll bars are added to the control when necessary to allow the user to see all the items; otherwise, false. The default is true.

When this property is set to true, the ListView displays a vertical scroll bar to use when the number of items exceeds the size of the client area of the control. You can use this property to ensure that the user can access all items that are available in the ListView control.

NoteNote:

In versions of the .NET Framework prior to version 2.0, the column headers were not painted correctly when setting this property to false and resizing the control to make it larger. To work around this issue, set this property to true in a ResizeBegin event handler and set it back to false in a ResizeEnd event handler.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: