DataPagerCommandEventArgs::NewMaximumRows Property
Gets or sets the maximum number of records to display on each page of data.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Property Value
Type: System::Int32The 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.
Available since 3.5