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.

.NET Framework
Available since 3.5
Return to top
Show: