This documentation is archived and is not being maintained.

DataPagerCommandEventArgs::NewMaximumRows Property

Gets or sets the maximum number of records to display on each page of data.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public:
property int NewMaximumRows {
	int get ();
	void set (int value);
}

Property Value

Type: System::Int32
The maximum number of records to display on each page of data. The default is -1, which indicates that this property is not set.

When you set a value for the NewStartRowIndex property, you must also set the NewMaximumRows property. If you do not want to change the current value, you can set the NewMaximumRows property to the value of the MaximumRows property of the DataPager control. You can access the DataPager control through the Item property.

The following example shows how to use the NewMaximumRows property to set the maximum number of records to display on each page of data. This code example is part of a larger example provided for the DataPagerCommandEventArgs class.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: