[RESOLVED] how do you use css to control look and feel of a datapager for a listview

I have listviews that I would like to modify the look and feel of the default datapager.  How do I do that?

Hello !

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....

Thanks

thoughts on "[RESOLVED] how do you use css to control look and feel of a datapager for a listview "

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>