WebGrid.RowsPerPage Property

Gets the number of rows that are displayed on each page of the WebGrid instance.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

Syntax

'Declaration
Public ReadOnly Property RowsPerPage As Integer 
    Get
'Usage
Dim instance As WebGrid 
Dim value As Integer 

value = instance.RowsPerPage
public int RowsPerPage { get; }
public:
property int RowsPerPage {
    int get ();
}
member RowsPerPage : int
function get RowsPerPage () : int

Property Value

Type: System.Int32
The number of rows that are displayed on each page of the grid.

Remarks

The number of rows to display is set when the WebGrid object is instantiated by using the WebGrid(IEnumerable<Object>, IEnumerable<String>, String, Int32, Boolean, Boolean, String, String, String, String, String, String, String) constructor and cannot be changed later.

See Also

Reference

WebGrid Class

System.Web.Helpers Namespace