ListBox::Rows Property
.NET Framework (current version)
Gets or sets the number of rows displayed in the ListBox control.
Assembly: System.Web (in System.Web.dll)
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The specified number of rows is less than one or greater than 2000. |
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.
.NET Framework
Available since 1.1
Available since 1.1
Show:
