FormViewDesigner.SampleRowCount Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the number of sample rows for the associated control to display.
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 sample rows.
Examples
The following code example shows how to override the SampleRowCount property in a class that is inherited from the FormViewDesigner class to change the number of page links appearing in the pager row of the FormView control at design time. The example causes four page links to display.
// Determines the number of design-time links in the pager row.
protected override int SampleRowCount
{
get
{
// Render four links in the pager row.
return 4;
}
} // SampleRowCount
' Determines the number of design-time links in the pager row.
Protected Overrides ReadOnly Property SampleRowCount() As Integer
Get
' Render four links in the pager row.
Return 4
End Get
End Property ' SampleRowCount
Remarks
The SampleRowCount always returns 2
. This causes two page links to be displayed in the pager row of the FormView control at design time, if the PagerSettings mode is numeric.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기