2012-11-08 22 views
2

所有頁碼的名單我有一個數據的巨量量,這會建立像頁碼的ASP.NET GridView控制:GridView控件未顯示在底部在asp.net

1,2,3 ,4,5,6,7 .....

代替週期,我需要在GridView底部顯示所有頁碼。任何人都可以看到我的代碼有什麼問題嗎?

<asp:GridView ID="gvContact" 
       runat="server" 
       AllowPaging="True" 
       PageSize="1000" 
       AutoGenerateColumns="False" 
       CellPadding="4" 
       ForeColor="#333333" 
       GridLines="None" 
       OnRowCancelingEdit="GridView1RowCancelingEdit" 
       OnRowEditing="GridView1RowEditing" 
       Width="960px" 
       OnRowUpdating="GridView1RowUpdating" 
       OnPageIndexChanging="GrvDetailsPageIndexChanging" 
       OnRowDeleting="GridView1RowDeleting"> 
+0

你能成爲一個更具體一點,可能要添加一個屏幕截圖? –

+0

你可以添加一些代碼嗎? –

+0

回答

2

在你的GridView的設置Mode="NumericFirstLast"使用PageButtonCount在一起,例如加入這一行GridView的內部:

<PagerSettings Mode="NumericFirstLast" PageButtonCount="1000" />