PagerSettings.PageButtonCount プロパティ
アセンブリ: System.Web (system.web.dll 内)
 構文
構文Dim instance As PagerSettings Dim value As Integer value = instance.PageButtonCount instance.PageButtonCount = value
/** @property */ public int get_PageButtonCount () /** @property */ public void set_PageButtonCount (int value)
ページャに表示されるページ ボタンの数。既定値は 10 です。
 例外
例外 解説
解説Mode プロパティが Numeric 値または NumericFirstLast 値に設定されている場合、ページャに表示されるページ ボタンの数を指定するには PageButtonCount プロパティを使用します。
 使用例
使用例PageButtonCount プロパティを使用して、GridView コントロールのページャ行に、5 つのページ ボタンを同時に表示する方法を次のコード例に示します。
<%@ Page language="VB" %> <html> <body> <form runat="server"> <h3>PagerSetting Example</h3> <asp:gridview id="CustomerGridView" datasourceid="CustomerDataSource" autogeneratecolumns="true" datakeynames="CustomerID" allowpaging="true" runat="server"> <pagersettings mode="NumericFirstLast" firstpagetext="First" lastpagetext="Last" pagebuttoncount="5" position="Bottom"/> </asp:gridview> <br/> <asp:label id="MessageLabel" forecolor="Red" runat="server"/> <!-- This example uses Microsoft SQL Server and connects --> <!-- to the Northwind sample database. Use an ASP.NET --> <!-- expression to retrieve the connection string value --> <!-- from the Web.config file. --> <asp:sqldatasource id="CustomerDataSource" selectcommand="Select [CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country] From [Customers]" connectionstring="<%$ ConnectionStrings:NorthWindConnectionString%>" runat="server"/> </form> </body> </html>
<%@ Page language="C#" %> <html> <body> <form runat="server"> <h3>PagerSetting Example</h3> <asp:gridview id="CustomerGridView" datasourceid="CustomerDataSource" autogeneratecolumns="true" datakeynames="CustomerID" allowpaging="true" runat="server"> <pagersettings mode="NumericFirstLast" firstpagetext="First" lastpagetext="Last" pagebuttoncount="5" position="Bottom"/> </asp:gridview> <br/> <asp:label id="MessageLabel" forecolor="Red" runat="server"/> <!-- This example uses Microsoft SQL Server and connects --> <!-- to the Northwind sample database. Use an ASP.NET --> <!-- expression to retrieve the connection string value --> <!-- from the Web.config file. --> <asp:sqldatasource id="CustomerDataSource" selectcommand="Select [CustomerID], [CompanyName], [Address], [City], [PostalCode], [Country] From [Customers]" connectionstring="<%$ ConnectionStrings:NorthWindConnectionString%>" runat="server"/> </form> </body> </html>
 プラットフォーム
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
 バージョン情報
バージョン情報 参照
参照Weblioに収録されているすべての辞書からPagerSettings.PageButtonCount プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からPagerSettings.PageButtonCount プロパティ
                    を検索
                     全ての辞書からPagerSettings.PageButtonCount プロパティ
                    を検索
                - PagerSettings.PageButtonCount プロパティのページへのリンク

 
                             
                    


