I have listviews that I would like to modify the look and feel of the default datapager. How do I do that?
We can use listview to view our data by setting its datasource.
Here in the below example we can see how a listview is presented to view a table data :-
<LayoutTemplate> <div ID="itemPlaceholderContainer" runat="server" style=""> <span runat="server" id="itemPlaceholder" /> </div> <div style=""> <asp:DataPager ID="DataPager1" runat="server"> <Fields> <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowLastPageButton="True" /> </Fields> </asp:DataPager> </div> </LayoutTemplate>
Here in the above code we can see that there is a div DataPager control and this div container is having a style property set to value "" emtpy. So if we want to set the css styles for the Datapager here it can be set or any class containing all the styles can be set to teh class name assigning to this div.
Think this may be helpfull....