i use paging inside gridview in asp.net, ex:
<asp:gridview id="gvproject" runat="server" skinid="gvproject" autogeneratecolumns="false" viewstatemode="enabled" allowpaging="true" pagesize="20" onpageindexchanging="gvproject_pageindexchanging"> <columns> <asp:boundfield datafield="counter" headertext="counter" readonly="true" headerstyle-font-bold="false" itemstyle-width="60px" itemstyle-horizontalalign="center"></asp:boundfield> <asp:hyperlinkfield datatextfield="title" datanavigateurlfields="address" headertext="title" headerstyle-font-bold="false" itemstyle-width="580px" itemstyle-horizontalalign="right" /> </columns> <pagersettings firstpagetext="<<" lastpagetext=">>" pagebuttoncount="10" mode="numericfirstlast" nextpagetext=">" previouspagetext="<" position="bottom" />
and use numericfirstlast mode in pagersettings.
i want use css class numeric button in pager list similar buttoncssclass inside numericpagerfield in datapager.
you need add pagerstyle
element set cssclass paging area:
<pagersettings firstpagetext="<<" lastpagetext=">>" pagebuttoncount="10" mode="numericfirstlast" nextpagetext=">" previouspagetext="<" position="bottom" /> <pagerstyle cssclass="yourcssclassname"/> </asp:gridview>
note can set of properties belong tableitemstyle object (backcolor, forecolor, etc).
Comments
Post a Comment