System.Web.UI.WebControls.ListBox.Rows Property

Gets or sets the number of rows displayed in the System.Web.UI.WebControls.ListBox control.

Syntax

[System.ComponentModel.DefaultValue(4)]
public virtual int Rows { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the ListBox.Rows property to specify the number of rows to display in the System.Web.UI.WebControls.ListBox control.

Note:

The number of rows must be between one and 2000. Values outside of this range will raise an exception.

The value of the ListBox.Rows property is stored in view state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0