Editare

Partajați prin


ListViewDesigner.SampleRowCount Property

Definition

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

protected:
 virtual property int SampleRowCount { int get(); };
protected override int SampleRowCount { get; }
member this.SampleRowCount : int
Protected Overrides ReadOnly Property SampleRowCount As Integer

Property Value

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

Remarks

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.

Applies to

See also