ListBox.Rows Property
.NET Framework 2.0
Gets or sets the number of rows displayed in the ListBox control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
Use the Rows property to specify the number of rows to display in the ListBox control.
Caution |
|---|
| The number of rows must be between one and 2000. Values outside of this range will raise an exception. |
The value of the Rows property is stored in view state.
| Topic | Location |
|---|---|
| How to: Add ListBox Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
| How to: Add ListBox Web Server Controls to a Web Forms Page | Building ASP .NET Web Applications |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show:
Caution