Paging style in gridview
hi this is kavita
I m using gridview and use paging their are 4 mode of paging style in asp.net2.0.I want like google type of paging like 1 2 3 4 5 6...Next Last
can any body help me to customize it?
thanks
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
velkropie20 pointsPosted Jul 19, 2007, 1:26 PM EDT
<form runat="server" method="post">
<asp:DataGrid runat="server" id="myDataGrid"
Border="0"
Cellpadding="4"
Cellspacing="0"
AlternatingItemStyle-BackColor="#EFEFEF"
ShowHeader="True"
CssClass="DataGrid"
HeaderStyle-BackColor="Black"
HeaderStyle-ForeColor="White"
HeaderStyle-Font-Bold="True"
AllowPaging="True"
PageSize="10"
PagerStyle-Mode="NextPrev"
PagerStyle-NextPageText="Next ->"
PagerStyle-PrevPageText="<- Previous"
PagerStyle-Font-Bold="True"
OnPageIndexChanged="myDataGrid_PageChanger"
/>
</form>
after, the number appear as you add more records to the grid
kavita113 pointsPosted Jul 19, 2007, 9:42 PM EDT