Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using grid view and I set next and previous link to navigate the grid view, so when I go to middle page of grid view the previous and next links close to each other which looks not as one word and this not good . please help how make space between them

below my code

please help

What I have tried:

XML
<pagersettings mode="NextPrevious" previouspagetext="previous" nextpagetext="next" lastpagetext="" />  

<pagerstyle cssclass="myclass" />

in css file I put
CSS
tr.myclass a{padding-right:20px;}
Posted
Updated 31-Aug-16 20:30pm
v2
Comments
Andy Lanng 30-Aug-16 11:02am    
In these forums, html does render. If you need to show html code then wrap it in "<pre></pre>" tags.
I have done this for you in this case ^_^

1 solution

in my project, I have added a grid view and set the settings like below, it works fine for me, hope for you too :
ASP.NET
<asp:gridview id="gvProduct" cssclass="FormFont" runat="server" cellpadding="4" forecolor="#333333" gridlines="None" autogeneratecolumns="False" datasourceid="ldsProduct" width="100%" onrowcommand="gvProduct_RowCommand" allowpaging="true" pagesize="15" onpageindexchanging="OnPaging" pagersettings-mode="NumericFirstLast" pagersettings-firstpagetext="first page" 
PagerSettings-LastPageText="last page" PagerSettings-PageButtonCount="6"
<alternatingrowstyle backcolor="White" />
<columns>
  // your columns
</columns>
</asp:gridview>


best regards
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900