Export (0) Print
Expand All

ListViewDesigner.SampleRowCount Property

Gets the number of records that the ListView control displays on the design surface.

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

protected override int SampleRowCount { get; }

Property Value

Type: System.Int32
The number of records that the ListView control displays on the design surface.

The SampleRowCount property always returns 21. This causes 21 records to be displayed in the design surface for the ListView control. An exception is if there is a DataPager control inside the ListView.LayoutTemplate template and the DataPager.PageSize property is set to a value less than 21. In that case, the number of records to display is the value of the DataPager.PageSize property. The maximum number of records that the ListView control will display on the designer surface is 21 records.

.NET Framework

Supported in: 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft