GridViewDesigner.SampleRowCount Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the number of sample rows for the associated control to display.

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

protected override int SampleRowCount { get; }

Property Value

Type: System.Int32

The number of sample rows.

If the associated GridView control allows paging and the PageSize property is greater than 0, the SampleRowCount property returns the PageSize plus 1 (but not greater than 100). If the GridView does not allow paging or the PageSize is 0, SampleRowCount returns 5.

.NET Framework
Available since 2.0
Return to top